Feature/fix warnings
We should be able to compile using -Wall -Wextra -Werror
.
Currently the easy fixes are done, but in the Unstructured load balancer many variables are declared (and set), but not used. I assume, this is the case due to the in progress state of the method.
Other open problems are:
- unused parameters for some implementations of
setAdditionalData
. If these declaration have to be there we may silence them with proper annotations (for GCC:__attribute__((unused))
(ref), which should be put into a compiler dependant preprocessor switch to also set this for clang etc. as well as for readability. Maybeknown_unused
is a good keyword) - ignored const on function return (
ALL_LB.hpp:163: const int getNVertices() { return vertices.size(); }
)
This branch should only be merged to refactor
after !9 (merged) has been merged!.
Merge request reports
Activity
The ignored const on function return is irrelevant since a value is returned. Remvoed the qualifier.
I have (for now) implemented the
known_unused
keyword to declare some variables which are known to be unused. This only works for GCC at the moment and breaks compatibility with other compilers!The warnings from
voro++.hh
can be silenced (at least in GCC) with pragmas, as shown inALL_Voronoi.hpp
. Compiling the voro library still throws lots of errors if warnings are enabled globally withCMAKE_CXX_FLAGS
, but that might not matter, since the user's program would not throw those on compilation.- Resolved by Stephan Schulz
added 4 commits
-
f3c69c69...aa3e9ccb - 2 commits from branch
refactor
- 90f28255 - Merge branch 'refactor' into feature/fix_warnings
- 31b0fb15 - "fix" warnings in one test
-
f3c69c69...aa3e9ccb - 2 commits from branch
- Resolved by Stephan Schulz