Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/29396 )

Change subject: scons: Disable some warnings in clang.
......................................................................

scons: Disable some warnings in clang.

The defaulted-function-deleted warning triggers in generated code which
would be very tricky to address.

The c99-designator refers to using an array index to specify which
element of an array is being initialized. This makes the code more
clear and is supported by both g++ and clang++. Designated initializers
for structures are being introduced in C++20, but there is no word I
could find on arrays.

The deprecated-register warning crops up in python header files. It's
very unlikely anyone would use the register keyword in gem5 normally,
so any usage we run into is likely in code we don't control and can't
fix.

Change-Id: I8fb858e643814638c552a49336db2672be8e43c8
---
M SConstruct
1 file changed, 3 insertions(+), 0 deletions(-)



diff --git a/SConstruct b/SConstruct
index 82fad3b..1f9ae4a 100755
--- a/SConstruct
+++ b/SConstruct
@@ -475,6 +475,9 @@
                          # use struct hash and class hash
                          # interchangeably.
                          '-Wno-mismatched-tags',
+                         '-Wno-defaulted-function-deleted',
+                         '-Wno-c99-designator',
+                         '-Wno-deprecated-register',
                          ])

     main.Append(TCMALLOC_CCFLAGS=['-fno-builtin'])

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/29396
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: release-staging-v20.0.0.0
Gerrit-Change-Id: I8fb858e643814638c552a49336db2672be8e43c8
Gerrit-Change-Number: 29396
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
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

Reply via email to