summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-08-10 15:57:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-08-10 15:57:09 +0000
commit760ccbabfbec67d80c3bdac9c0803ecf7d1742b6 (patch)
treea8cbb70fbf1d1aab7eb24310d70be94dee292453 /wscript
parent69ca705286383df96b337cc93428f95bd7623345 (diff)
add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix const cast warnings generated by new flags
git-svn-id: svn://localhost/ardour2/branches/3.0@13124 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript16
1 files changed, 14 insertions, 2 deletions
diff --git a/wscript b/wscript
index eb0f100edf..064d03f31f 100644
--- a/wscript
+++ b/wscript
@@ -334,8 +334,20 @@ def set_compiler_flags (conf,opt):
# warnings flags
#
- conf.env.append_value('CFLAGS', "-Wall")
- conf.env.append_value('CXXFLAGS', [ '-Wall', '-Woverloaded-virtual'])
+ conf.env.append_value('CFLAGS', [ '-Wall',
+ '-Wpointer-arith',
+ '-Wcast-qual',
+ '-Wcast-align',
+ '-Wstrict-prototypes',
+ '-Wmissing-prototypes'
+ ])
+
+ conf.env.append_value('CXXFLAGS', [ '-Wall',
+ '-Wpointer-arith',
+ '-Wcast-qual',
+ '-Wcast-align',
+ '-Woverloaded-virtual'
+ ])
#