Closed codereport closed 3 years ago
Maybe good to reference https://github.com/lefticus/cpp_starter_project/blob/master/cmake/CompilerWarnings.cmake you can create a interface library that implements the warnings and just link it to the projects you want to have them with. And the way they format the warnings you can just comment the lines out you don't want. I used this in my project because the warnings I had enabled caused Google test to fail to compile. I could probably. Related https://github.com/codereport/jsource/issues/89
I would propose the following workflow for getting rid of the warnings incrementally:
-Wno-<warning>
's at a time to -Wno-error=<warning>
-Wno-error=<warning>
when the corresponding warnings are fixedThis allows us to:
I used this approach for organising the cmake file in #109.
Currently
-Werror
is commented out in ourCMakeLists.txt
:We want to turn this on.