From: Bobby R. Bruce Date: Thu, 1 Oct 2020 03:53:14 +0000 (-0700) Subject: misc: Re-add -Werror for the gem5 20.2 development X-Git-Tag: develop-gem5-snapshot~692 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0ae17c5d4c920a71080255aa2852e158d852d3c;p=gem5.git misc: Re-add -Werror for the gem5 20.2 development This reverts commit 2a4357bfd0c688a19cfd6b1c600bb2d2d6fa6151, https://gem5-review.googlesource.com/c/public/gem5/+/35455 Change-Id: I10de506658bcad542abbb6d2b4f0c416d55bc121 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35495 Reviewed-by: Bobby R. Bruce Maintainer: Bobby R. Bruce Tested-by: kokoro --- diff --git a/SConstruct b/SConstruct index ce9e9b6c5..8e7ec3481 100755 --- a/SConstruct +++ b/SConstruct @@ -337,6 +337,12 @@ 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.",