[glib/wip/format-errors: 1/2] configure: Expand -Werror=format=2



commit de001225c39a4c4f5773b88b9805456f60d11374
Author: Colin Walters <walters verbum org>
Date:   Sun Jan 13 11:45:52 2013 -0500

    configure: Expand -Werror=format=2
    
    Apparently on at least some GCC versions, we don't get the effect we
    want of -Werror=format and -Werror=format-nonliteral.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691608

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5cb21df..76d66ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3572,7 +3572,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
    -Wall -Wstrict-prototypes -Werror=declaration-after-statement \
    -Werror=missing-prototypes -Werror=implicit-function-declaration \
    -Werror=pointer-arith -Werror=init-self -Werror=format-security \
-   -Werror=format=2 -Werror=missing-include-dirs])
+   -Werror=format-nonliteral -Werror=format-y2k -Werror=missing-include-dirs])
 CFLAGS="$with_cflags $CFLAGS"
 
 #



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]