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

ci: add useful c++ warning flags #487

Open
mzuzek opened this issue Nov 4, 2022 · 0 comments
Open

ci: add useful c++ warning flags #487

mzuzek opened this issue Nov 4, 2022 · 0 comments

Comments

@mzuzek
Copy link
Collaborator

mzuzek commented Nov 4, 2022

Add -Wlogical-op-parentheses to CI build options.

Other commonly used flags for consideration:

  • -Werror (warnings as errors - any breaks build)
  • groups: -Wall, -Wextra, -pedantic
  • unused: -Wunused, -Wunused-parameter, -Wunused-function, -Wunused-private-field
  • -Wuninitialized
  • -Wshadow
  • -Wsign-compare
  • -Wtype-limits
  • -Wignored-qualifiers
  • -Wempty-body

See more at https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

@mzuzek mzuzek self-assigned this Nov 4, 2022
@mzuzek mzuzek added this to high-priority todo in Developer - Mikolaj Zuzek Nov 4, 2022
@fnrizzi fnrizzi moved this from high-priority todo to low-priority todo in Developer - Mikolaj Zuzek Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Developer - Mikolaj Zuzek
low-priority todo
Development

No branches or pull requests

1 participant