Add more warning flags, fix a few new warnings

This commit is contained in:
Nils O. Selåsdal
2012-12-04 23:13:01 +01:00
parent c29b467dca
commit ad08ee8963
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ env = Environment(tools = ['default', 'textfile'])
env.AddMethod(InstallPerm)
Export('env', 'build_type', 'prefix', 'version_info', 'test_xml')
env.Append(CFLAGS = ['-Wall', '-Wextra', '-pipe', '-ggdb', '-pthread'])
env.Append(CFLAGS = ['-Wall', '-Wextra', '-Wundef', '-Wcast-qual','-Wshadow' ,'-Wcast-align','-pipe', '-ggdb', '-pthread'])
env.Append(LINKFLAGS = ['-O2', '-pthread'])
env.Append(CPPDEFINES = ['_FILE_OFFSET_BITS=64'])
env.Append(CPPPATH = ['#include'])