Bobby R. Bruce has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/43646 )
Change subject: misc: revert removal of -Werror for gem5 21.0
......................................................................
misc: revert removal of -Werror for gem5 21.0
This reverts:
https://gem5-review.googlesource.com/c/public/gem5/+/43425
Change-Id: Ic239150a7f2968744e40df40a6c03a942dc41ea6
---
M SConstruct
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/SConstruct b/SConstruct
index 5b3e761..ae4c86a 100755
--- a/SConstruct
+++ b/SConstruct
@@ -322,6 +322,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/+/43646
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: Ic239150a7f2968744e40df40a6c03a942dc41ea6
Gerrit-Change-Number: 43646
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s