]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Added more compiler warning flags
authorAlan T. DeKok <aland@freeradius.org>
Tue, 31 Jan 2012 11:18:35 +0000 (12:18 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 31 Jan 2012 11:18:35 +0000 (12:18 +0100)
for format string issues

configure
configure.in

index 022ad9db79bd49bdadd1f526bdb28297d251719c..da6ef73436cb1bf5ac353ee5c851e20617572396 100755 (executable)
--- a/configure
+++ b/configure
@@ -25130,7 +25130,7 @@ fi
 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
-  devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
+  devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length  -Wformat-nonliteral -Wformat-security -Wformat=2"
   CFLAGS="$CFLAGS $devflags"
   INSTALLSTRIP=""
   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
index eace2ee7899f092ae7222b68d3231270659152e5..f22d6808ac47f248e8c37ad2c06c4fd00cb4d88f 100644 (file)
@@ -948,7 +948,7 @@ AC_SUBST(LIBPREFIX)
 
 AC_MSG_CHECKING(for developer gcc flags)
 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
-  devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
+  devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length  -Wformat-nonliteral -Wformat-security -Wformat=2"
   CFLAGS="$CFLAGS $devflags"
   INSTALLSTRIP=""
   AC_MSG_RESULT(yes.  Using $devflags)