projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a6bb82
)
scons: Enable override suggestions on gcc 5.0+
author
Matteo Andreozzi
<Matteo.Andreozzi@arm.com>
Fri, 27 May 2016 15:46:03 +0000
(16:46 +0100)
committer
Matteo Andreozzi
<Matteo.Andreozzi@arm.com>
Fri, 27 May 2016 15:46:03 +0000
(16:46 +0100)
---
SConstruct | 4 ++++
1 file changed, 4 insertions(+)
SConstruct
patch
|
blob
|
history
diff --git
a/SConstruct
b/SConstruct
index 5b3ab1188f2640fd6b9fb15aadbcb2ed4669243b..53dd6d352edb0d15660526720d4e896c007ecf20 100755
(executable)
--- a/
SConstruct
+++ b/
SConstruct
@@
-733,6
+733,10
@@
if main['GCC']:
main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
'-fno-builtin-realloc', '-fno-builtin-free'])
+ # add option to check for undeclared overrides
+ if compareVersions(gcc_version, "5.0") > 0:
+ main.Append(CCFLAGS=['-Wno-error=suggest-override'])
+
elif main['CLANG']:
# Check for a supported version of clang, >= 3.1 is needed to
# support similar features as gcc 4.7. See