Added '-Wconversion' for GCC.
This commit is contained in:
parent
726af25bf0
commit
42163d5343
@ -515,6 +515,7 @@ env.Append(CXXFLAGS = ['-ansi'])
|
|||||||
env.Append(CXXFLAGS = ['-pedantic'])
|
env.Append(CXXFLAGS = ['-pedantic'])
|
||||||
env.Append(CXXFLAGS = ['-Wpointer-arith'])
|
env.Append(CXXFLAGS = ['-Wpointer-arith'])
|
||||||
env.Append(CXXFLAGS = ['-Wold-style-cast'])
|
env.Append(CXXFLAGS = ['-Wold-style-cast'])
|
||||||
|
env.Append(CXXFLAGS = ['-Wconversion'])
|
||||||
|
|
||||||
env.Append(TARFLAGS = ['-c'])
|
env.Append(TARFLAGS = ['-c'])
|
||||||
env.Append(TARFLAGS = ['--bzip2'])
|
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:
|
for f in compilerFlags:
|
||||||
configure_in.write('# ' + f + '\n')
|
configure_in.write('# ' + f + '\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user