build: add -Wformat-security to the default warning flags
authorDan Winship <danw@gnome.org>
Wed, 2 Apr 2014 13:24:56 +0000 (09:24 -0400)
committerDan Winship <danw@gnome.org>
Wed, 2 Apr 2014 13:24:56 +0000 (09:24 -0400)
m4/compiler_warnings.m4

index 3037c58..357ff0e 100644 (file)
@@ -8,7 +8,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
        CFLAGS="-Wall -std=gnu89 $CFLAGS"
 
        for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
-                     -Wdeclaration-after-statement \
+                     -Wdeclaration-after-statement -Wformat-security \
                      -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
                      -fno-strict-aliasing -Wno-unused-but-set-variable \
                      -Wundef -Wimplicit-function-declaration \