summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-11-19 15:13:48 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-11-19 18:35:32 (GMT)
commit73b24b00cc670b2f879d1468fac3670158e42255 (patch)
treed58e1868ece7dc25cc6629034a1b84a4c94fa9e7 /configure.py
parent68c5917bf994d7e32b30a5b6df4bbda0189a4017 (diff)
downloadNinja-73b24b00cc670b2f879d1468fac3670158e42255.zip
Ninja-73b24b00cc670b2f879d1468fac3670158e42255.tar.gz
Ninja-73b24b00cc670b2f879d1468fac3670158e42255.tar.bz2
Add -Wextra warning flag.
Fix triggered warnings: - unused parameter - type qualifiers ignored on function return type - missing initializer for member
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 16db729..e31387e 100755
--- a/configure.py
+++ b/configure.py
@@ -74,7 +74,7 @@ def cxx(name, **kwargs):
n.variable('builddir', 'build')
-cflags = ['-g', '-Wall', '-Wno-deprecated', '-fno-exceptions',
+cflags = ['-g', '-Wall', '-Wextra', '-Wno-deprecated', '-fno-exceptions',
'-fvisibility=hidden', '-pipe']
if not options.debug:
cflags += ['-O2', '-DNDEBUG']