-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
Description
The flags ‘-Wsuggest-final-types’, ‘-Wsuggest-final-methods’ and ‘-Wsuggest-override’ introduced in gcc 5.1, but used also for gcc < 5.1
Expected Behavior
No error
Current Behavior
Error during compiling:
g++: error: unrecognized command line option ‘-Wsuggest-final-types’
g++: error: unrecognized command line option ‘-Wsuggest-final-methods’
g++: error: unrecognized command line option ‘-Wsuggest-override’
Possible Solution
if(CXX_COMPILER_VERSION VERSION_LESS 5.1.0 OR NOT ENABLE_CXX11_SUPPORT)
Steps to Reproduce (for bugs)
On Stallo
- module load GCCcore/4.9.3
- ./setup
- cd build
- make