[or-cvs] [tor/master 2/3] Remove redundant -Wformat -Wformat-security CFLAGS

nickm at torproject.org nickm at torproject.org
Wed Oct 20 17:03:28 UTC 2010


Author: Sebastian Hahn <sebastian at torproject.org>
Date: Wed, 20 Oct 2010 12:47:09 +0200
Subject: Remove redundant -Wformat -Wformat-security CFLAGS
Commit: 12d675a8dd9e1288c60db2107be269022c2ae4d4

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 7e72ada..ef358a8 100644
--- a/configure.in
+++ b/configure.in
@@ -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])
-- 
1.7.1




More information about the tor-commits mailing list