Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xo/xo.c#L99: add missing UNUSED marker for all unused flags #85

Open
pstef opened this issue Mar 17, 2022 · 2 comments
Open

xo/xo.c#L99: add missing UNUSED marker for all unused flags #85

pstef opened this issue Mar 17, 2022 · 2 comments

Comments

@pstef
Copy link

pstef commented Mar 17, 2022

int lflag UNUSED = 0;
int hflag = 0, jflag = 0, tflag = 0,
zflag = 0, qflag = 0,

are all set but not used, however only lflag is marked as such. Compilers complain :(

@philshafer
Copy link
Contributor

philshafer commented Mar 18, 2022 via email

@pstef
Copy link
Author

pstef commented Mar 18, 2022

The patch looks good to me, but I didn't test it.
Sorry, I didn't mean to suggest that a compiler is failing. clang/llvm 13 was recently imported into base and by default it warns about variables set but not used.

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

No branches or pull requests

2 participants