Added '-Wconversion' for GCC.

This commit is contained in:
Vincent Richard 2005-02-10 20:20:17 +00:00
parent 726af25bf0
commit 42163d5343

View File

@ -515,6 +515,7 @@ env.Append(CXXFLAGS = ['-ansi'])
env.Append(CXXFLAGS = ['-pedantic'])
env.Append(CXXFLAGS = ['-Wpointer-arith'])
env.Append(CXXFLAGS = ['-Wold-style-cast'])
env.Append(CXXFLAGS = ['-Wconversion'])
env.Append(TARFLAGS = ['-c'])
env.Append(TARFLAGS = ['--bzip2'])
@ -1453,7 +1454,7 @@ fi
""")
compilerFlags = [ '-pipe', '-ansi', '-pedantic', '-W', '-Wall' ]
compilerFlags = [ '-pipe', '-ansi', '-pedantic', '-W', '-Wall', '-Wpointer-arith', '-Wold-style-cast', '-Wconversion' ]
for f in compilerFlags:
configure_in.write('# ' + f + '\n')