From 42163d53430d03c7970b737d8c0455cb3aa3662c Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 10 Feb 2005 20:20:17 +0000 Subject: [PATCH] Added '-Wconversion' for GCC. --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 43a1551f..3a40bc04 100644 --- a/SConstruct +++ b/SConstruct @@ -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')