Closed robertodr closed 7 years ago
Also add -Wextra, where available. The warning flags are added to CMAKE_<LANG>_FLAGS so that one gets warnings also in release builds. 'Cause life is too short to deactivate or ignore compiler warnings!
CMAKE_<LANG>_FLAGS
This is good initiative. Let us make 'rule' that by default we switch on all compilers warnings.
Thank you! Very good path forward.
Also add -Wextra, where available. The warning flags are added to
CMAKE_<LANG>_FLAGS
so that one gets warnings also in release builds. 'Cause life is too short to deactivate or ignore compiler warnings!