-
Notifications
You must be signed in to change notification settings - Fork 509
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
Fix compilation warnings #2531
Comments
Related PR: Treats warnings as errors only in CI tests by adding However, if we want to avoid breaking CI with new warnings, we have to provide an explicit list, which is better done inside |
O2Physics compilation warnings are not treated as errors by default since #2012 to avoid breaking the CI checks when a new warning is introduced by a compiler. Only explicitly listed warnings make the CI check fail.
If one wants a warning to become an error, all instances have to be fixed first and then the warning can be added in the
CMAKE_CXX_FLAGS
variable in dependencies/O2PhysicsCompileFlags.cmake.Currently checked warnings (reference):
-Wunused-variable
The text was updated successfully, but these errors were encountered: