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 compile warnings #76
Conversation
Also some automatic whitespace cleaning.
ODR warnings removed in latest commit thanks to @sleweke / @sleweke-bayer , whichever account applies 😉. For posterity, the ODR warnings were triggered due to forward declarations of |
Removes const qualifiers on returned values, which are without effect.
Fixes warnings encountered when compiling with -Wall -pedantic-errors -Wextra -Wno-unused-parameter -Wno-unused-function. Adds these flags to the standard compile options.
I've enabled some more warnings by passing
to the compiler. These options are enabled from now on to ensuree code quality. |
Uses std::size_t as loop variable type for iterating std::vector instead of unsigned int.
cadet_assert is only defined in DEBUG mode, leading to unused ptr2 variable. Fixed by only assigning and asserting ptr2 in DEBUG mode.
Since we're comparing with int type.
Sets C++17 as required C++ standard in the CMake script. Also updates the build instructions with the minimum compiler versions.
Fixes #63
We had 3 sets of warnings:
readReferenceConcentrations()
declarationsThe first two are fixed. The last one is harder and I'll need help.