Fix compiler warnings with newer gcc versions#261
Conversation
|
@holke |
I use an Ubuntu 22.04 with a gcc 11.2.0 |
|
I think my comment regarding v >8 was misleading. The autotool errors from the PR before occur from v.8 on, that was my confusion. |
sandro-elsweijer
left a comment
There was a problem hiding this comment.
Even with Ubuntu 22.04 jammy and gcc 11.2.0 I get no warnings. But even though I can't reproduce these warnings, the changes improve the overall usability of the functions and lgtm.
Describe your changes here:
Fixes compiler warnings that occur with gcc version 11.2.0.
This is the code part from previous PR #257 that we closed without merging.
All these boxes must be checked by the reviewers before merging the pull request:
The author added a BSD statement to
doc/(or already has one)The code compiles without warning in debugging and release mode, with and without MPI (this should be executed automatically in a github action)
If the Pull request indroduces code that is not covered by the github action (for example coupling with a new library):
All tests pass (in various configurations, this should be executed automatically in a github action)
New source/header files are properly added to the Makefiles
The reviewer executed the new code features at least once and checked the results manually
The code is covered in an existing or new test case
The code follows the t8code coding guidelines
The code is well documented
All function declarations, structs/classes and their members have a proper doxygen documentation
All new algorithms and data structures are sufficiently optimal in terms of memory and runtime (If this should be merged, but there is still potential for optimization, create a new issue)
Testing of this template: If you feel something is missing from this list, contact the developers