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
Assignees

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
@fnrizzi fnrizzi assigned cwschilly and unassigned mzuzek Sep 18, 2024
@fnrizzi fnrizzi added this to pressio Sep 18, 2024
@fnrizzi fnrizzi moved this to todo (uncategorized) in pressio Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: todo (uncategorized)
Development

No branches or pull requests

2 participants