scons: Removed -Werror for the gem5 20.1 release
authorBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 30 Sep 2020 17:55:03 +0000 (10:55 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 1 Oct 2020 03:05:49 +0000 (03:05 +0000)
While gem5 compiles on all our supported compilers, removing the -Werror
flag on the stable branch ensures that, as new compilers are released
with stricter warnings, gem5 remains compilable.

Change-Id: I9a356472dc4d729a3fef9f1455814c900103bd66
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35455
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
SConstruct

index 621f923cdb36d7ff64a41ffd05bc97fbc8214b5b..0d8159bbabfa69e31f38915a4a7c8ab10929d075 100755 (executable)
@@ -337,12 +337,6 @@ if main['GCC'] or main['CLANG']:
     main.Append(PSHLINKFLAGS=shared_partial_flags)
     main.Append(PLINKFLAGS=shared_partial_flags)
 
-    # Treat warnings as errors but white list some warnings that we
-    # want to allow (e.g., deprecation warnings).
-    main.Append(CCFLAGS=['-Werror',
-                         '-Wno-error=deprecated-declarations',
-                         '-Wno-error=deprecated',
-                        ])
 else:
     error('\n'.join((
           "Don't know what compiler options to use for your compiler.",