← 输入框|github.com|刷新
Skip to content

toke: fix compiling in GCC 16 - #39

Open
codeismoe wants to merge 1 commit into
openbios:masterfrom
codeismoe:master
Open

codeismoe wants to merge 1 commit into
openbios:masterfrom
codeismoe:master

Conversation

@codeismoe

Copy link
Copy Markdown

GCC 16 changes what triggers for -Wunused-but-set-variable and -Wunused-but-set-parameter. This does have affects on OpenBIOS as well in some spots. Workaround exists by adding -Werror=unused-but-set-variable=1 to CFLAGS.

argindx is never referenced within get_args(), all tests pass in openBIOS, and I can't find any regressions. Figured this would be a little easier for y'all then just opening an issue with an attached patch since its two lines.

Remove `argindx` in `get_args()` due to changes in GCC 16's changes to
`-Wunused-but-set-variable`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant