From: Alan T. DeKok Date: Tue, 31 Jan 2012 11:18:35 +0000 (+0100) Subject: Added more compiler warning flags X-Git-Tag: release_3_0_0_beta0~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de10bcfd89beb755ba4e868be9ddbe3d1dce6863;p=thirdparty%2Ffreeradius-server.git Added more compiler warning flags for format string issues --- diff --git a/configure b/configure index 022ad9db79b..da6ef73436c 100755 --- 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 diff --git a/configure.in b/configure.in index eace2ee7899..f22d6808ac4 100644 --- a/configure.in +++ b/configure.in @@ -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)