Skip to content

Compiling error for gcc < 5.1 #76

@arnfinn

Description

@arnfinn

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

  1. module load GCCcore/4.9.3
  2. ./setup
  3. cd build
  4. make

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions