]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove redundant -Wformat -Wformat-security CFLAGS
authorSebastian Hahn <sebastian@torproject.org>
Wed, 20 Oct 2010 10:47:09 +0000 (12:47 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 20 Oct 2010 11:13:50 +0000 (13:13 +0200)
When configuring with --enable-gcc-warnings, we use -Wformat=2 which
automatically enables the available -Wformat switches, so adding them
again in the --enable-gcc-hardening case doesn't make sense..

configure.in

index 7e72adaa33f9470cf2005689f8c328200d88a3e3..ef358a8085cbb076458862b373af5ba55f4466ff 100644 (file)
@@ -98,7 +98,7 @@ AC_ARG_ENABLE(gcc-hardening,
      AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks),
 [if test x$enableval = xyes; then
     CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
-    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector -Wformat -Wformat-security"
+    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
     CFLAGS="$CFLAGS -Wpointer-sign --param ssp-buffer-size=1"
     LDFLAGS="$LDFLAGS -pie"
 fi])