summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-02-19 05:56:06 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-02-19 05:56:06 -0500
commitd670fa60a105676a19dd91440f66dc186450b3e8 (patch)
tree4f3d363bca7dd5f87364486132135362424cfa72 /SConstruct
parentc10098f28be209e90277925e3f983b7e62d1d037 (diff)
downloadgem5-d670fa60a105676a19dd91440f66dc186450b3e8.tar.xz
scons: Add warning for missing field initializers
This patch adds a warning for missing field initializers for both gcc and clang, and addresses the warnings that were generated.
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3d15f1db6..e91cc0599 100755
--- a/SConstruct
+++ b/SConstruct
@@ -528,6 +528,7 @@ if main['GCC']:
main.Append(CCFLAGS=['-pipe'])
main.Append(CCFLAGS=['-fno-strict-aliasing'])
main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])
+ main.Append(CXXFLAGS=['-Wmissing-field-initializers'])
main.Append(CXXFLAGS=['-std=c++0x'])
# Check for versions with bugs
@@ -577,6 +578,7 @@ elif main['CLANG']:
# Ruby makes frequent use of extraneous parantheses in the printing
# of if-statements
main.Append(CCFLAGS=['-Wno-parentheses'])
+ main.Append(CXXFLAGS=['-Wmissing-field-initializers'])
main.Append(CXXFLAGS=['-std=c++0x'])
# On Mac OS X/Darwin we need to also use libc++ (part of XCode) as
# opposed to libstdc++ to make the transition from TR1 to