Skip to content

Commit

Permalink
scons: Remove -Werror for the gem5 v21.2 release
Browse files Browse the repository at this point in the history
While gem5 compiles on 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: I05989356997bc7f6606c43944d15da6c3958a3f5
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/54463
Reviewed-by: Bobby Bruce <[email protected]>
Maintainer: Bobby Bruce <[email protected]>
Tested-by: kokoro <[email protected]>
  • Loading branch information
BobbyRBruce committed Dec 21, 2021
1 parent 5cf00e5 commit 5941458
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ if main['GCC'] or main['CLANG']:
if GetOption('gold_linker'):
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:
error('\n'.join((
"Don't know what compiler options to use for your compiler.",
Expand Down

0 comments on commit 5941458

Please sign in to comment.