scons: Remove -Werror for the gem5 21.1 release

While gem5 compiles on all our supported compilers, removing the -Werror
flag on the stable branch ensures that, as new compilers are released
with stricters warnings, gem5 remains compilable.

Change-Id: If306785e3f0822e1c435e1f10bf507a9e7a87eb6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/48584
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Bobby R. Bruce
2021-07-19 10:55:21 -07:00
parent 5586b84298
commit 3c61200c2b

View File

@@ -330,12 +330,6 @@ if main['GCC'] or main['CLANG']:
if GetOption('gold_linker'): if GetOption('gold_linker'):
main.Append(LINKFLAGS='-fuse-ld=gold') main.Append(LINKFLAGS='-fuse-ld=gold')
# 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: else:
error('\n'.join(( error('\n'.join((
"Don't know what compiler options to use for your compiler.", "Don't know what compiler options to use for your compiler.",