Jason Lowe-Power has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/48812 )
Change subject: scons: Re-add -Werror for the gem5 develop branch
......................................................................
scons: Re-add -Werror for the gem5 develop branch
This reverts commit 3c61200c2bbb1cf9ca216d7197b8c0fe6e210d56,
https://gem5-review.googlesource.com/c/public/gem5/+/48584
Change-Id: Idc071168857746f4c8d3e577949939ecf1761cda
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/48812
Reviewed-by: Bobby R. Bruce <[email protected]>
Maintainer: Bobby R. Bruce <[email protected]>
Tested-by: kokoro <[email protected]>
---
M SConstruct
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Bobby R. Bruce: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/SConstruct b/SConstruct
index 117a192..617c7b4 100755
--- a/SConstruct
+++ b/SConstruct
@@ -330,6 +330,12 @@
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.",
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48812
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Idc071168857746f4c8d3e577949939ecf1761cda
Gerrit-Change-Number: 48812
Gerrit-PatchSet: 3
Gerrit-Owner: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s