From 8b6f5f25102f9e2503ce18af77b6fd547a2192ca Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 27 Jan 2011 01:23:48 +0200 Subject: Use -Wformat-security when available --- configure.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 581a2198b9..e9a1b2dcba 100644 --- a/configure.in +++ b/configure.in @@ -429,6 +429,8 @@ if test "$GCC" = yes -a "$ICC" = no; then # These work in some but not all gcc versions PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement]) PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels]) + # This was included in -Wall/-Wformat in older GCC versions + PGAC_PROG_CC_CFLAGS_OPT([-Wformat-security]) # Disable strict-aliasing rules; needed for gcc 3.3+ PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing]) # Disable optimizations that assume no overflow; needed for gcc 4.3+ -- cgit v1.2.1