scons: Re-enable override based warnings on gcc.
authorGabe Black <gabeblack@google.com>
Sat, 24 Mar 2018 01:03:24 +0000 (18:03 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 26 Mar 2018 22:34:55 +0000 (22:34 +0000)
These warnings have been fixed.

Change-Id: I28ee5f4ae21412121849fcb9d273939d8e462842
Reviewed-on: https://gem5-review.googlesource.com/9344
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>

SConstruct

index 0bb0f69a247424ec42d5e5cf8e37df63606f548e..8fde133389c07af090f9724e87691b2319f9aa3d 100755 (executable)
@@ -478,10 +478,6 @@ if main['GCC']:
     main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
                                   '-fno-builtin-realloc', '-fno-builtin-free'])
 
-    # add option to check for undeclared overrides
-    if compareVersions(gcc_version, "5.0") > 0:
-        main.Append(CCFLAGS=['-Wno-error=suggest-override'])
-
     # The address sanitizer is available for gcc >= 4.8
     if GetOption('with_asan'):
         if GetOption('with_ubsan') and \