Bobby R. Bruce has uploaded this change for review. ( 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
---
M SConstruct
1 file changed, 6 insertions(+), 0 deletions(-)



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: 1
Gerrit-Owner: Bobby R. Bruce <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to