List:Commits« Previous MessageNext Message »
From:Magnus Svensson Date:November 6 2008 7:42pm
Subject:bzr commit into mysql-5.1 branch (msvensson:2719)
View as plain text  
#At file:///home/msvensson/mysql/6.2/

 2719 Magnus Svensson	2008-11-06
      Don't use pedantic as default warning mode
      Supress warnings for zero length format strings
modified:
  BUILD/SETUP.sh

=== modified file 'BUILD/SETUP.sh'
--- a/BUILD/SETUP.sh	2008-11-06 16:34:02 +0000
+++ b/BUILD/SETUP.sh	2008-11-06 19:42:24 +0000
@@ -61,7 +61,7 @@ prefix="/usr/local/mysql"
 just_print=
 just_configure=
 full_debug=
-warning_mode="pedantic"
+warning_mode=
 
 parse_options "$@"
 
@@ -92,7 +92,8 @@ if [ "x$warning_mode" != "xpedantic" ]; 
 # Both C and C++ warnings
   warnings="-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W"
   warnings="$warnings -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare"
-  warnings="$warnings -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable"
+  warnings="$warnings -Wwrite-strings -Wunused-function -Wunused-label"
+  warnings="$warnings -Wunused-value -Wunused-variable -Wno-format-zero-length"
 
   # Make "printf like format specifier warnings" into error
   #warnings="$warnings -Werror=format"

Thread
bzr commit into mysql-5.1 branch (msvensson:2719) Magnus Svensson6 Nov