-
Notifications
You must be signed in to change notification settings - Fork 129
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
Maintenance: Add Maybe Unused Macro #491
Conversation
Conflicts: src/arkode/arkode_adapt.c src/arkode/arkode_butcher.c src/sundials/sundials_hashmap.c
Conflicts: cmake/SundialsSetupCompilers.cmake examples/arkode/CXX_parallel/ark_heat2D_p.cpp examples/arkode/CXX_parhyp/ark_heat2D_hypre_ls.cpp examples/arkode/CXX_parhyp/ark_heat2D_hypre_pfmg.cpp examples/cvode/CXX_parallel/cv_heat2D_p.cpp examples/cvode/CXX_parhyp/cv_heat2D_hypre_ls.cpp examples/cvode/CXX_parhyp/cv_heat2D_hypre_pfmg.cpp src/nvector/manyvector/nvector_manyvector.c
Opening draft PR for testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's my impression that the "unused" warnings are originally intended to help developers clean up their code. It looks like those warnings have identified multiple locations where we could stand some cleanup. I'd prefer that this PR actually fix those items than plaster over them with the SUNDIALS_MAYBE_UNUSED
macro.
Add `SUNDIALS_MAYBE_UNUSED` macro to suppresses warnings on unused entities.
Add
SUNDIALS_MAYBE_UNUSED
macro to suppresses warnings on unused entities.