Skip to content

Make generated code compilable with -Wall -Werror #1741

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

Closed
jaeandersson opened this issue Mar 29, 2016 · 3 comments
Closed

Make generated code compilable with -Wall -Werror #1741

jaeandersson opened this issue Mar 29, 2016 · 3 comments
Assignees
Milestone

Comments

@jaeandersson
Copy link
Member

Compiling generated code with -Wall will result in unused variables warnings (and possibly other warnings). These originate both from e.g. iterators that may or may not be used and from unused function arguments.

@jaeandersson jaeandersson self-assigned this Mar 7, 2017
@jaeandersson jaeandersson added this to the Version 3.2 milestone Mar 7, 2017
jaeandersson added a commit that referenced this issue Mar 7, 2017
jaeandersson added a commit that referenced this issue Mar 7, 2017
@jaeandersson
Copy link
Member Author

jaeandersson commented Mar 10, 2017

undefined-variable is now mostly resolved. @ghorn @jgillis, let me know if you still get these warnings from somewhere. Or other warnings from -Wall (but not -Wextra).

@jaeandersson
Copy link
Member Author

jaeandersson commented Mar 30, 2017

You get warnings if you enable -Wmissing-prototypes or -Wunused-parameter. Neither is part of -Wall, though.

@jaeandersson
Copy link
Member Author

Resolved as far as I can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant