diff options
| author | Kees Cook <kees@outflux.net> | 2008-04-29 17:09:57 +0000 |
|---|---|---|
| committer | keescook <keescook@users.sourceforge.net> | 2008-04-29 17:09:57 +0000 |
| commit | 4bf1dee24f194ed7f9c1a90822b5b69911a0fe19 (patch) | |
| tree | cf0a9ae3a78b443dfcdb001c2439b94c6e5f4fd8 | |
| parent | Fixed problems with previous commit (trunk revision 18463) relating to unicon... (diff) | |
| download | inkscape-4bf1dee24f194ed7f9c1a90822b5b69911a0fe19.tar.gz inkscape-4bf1dee24f194ed7f9c1a90822b5b69911a0fe19.zip | |
make format string warnings fatal, since it should never happen
(bzr r5549)
| -rw-r--r-- | build.xml | 2 | ||||
| -rw-r--r-- | configure.ac | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -276,7 +276,7 @@ <file name="extension/param"/> </excludeinc> <flags> - -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch + -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -O2 -mms-bitfields </flags> diff --git a/configure.ac b/configure.ac index 9cecae403..313d349a8 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ if test "$GCC" = "yes"; then ink_svd_CFLAGS="$CFLAGS" CFLAGS="-Wno-pointer-sign $CFLAGS" AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), AC_MSG_NOTICE([ compiler supports -Wno-pointer-sign]), CFLAGS="$ink_svd_CFLAGS") - CFLAGS="-Wall -Wformat-security -W -D_FORTIFY_SOURCE=2 $CFLAGS" + CFLAGS="-Wall -Wformat -Werror=format-security -W -D_FORTIFY_SOURCE=2 $CFLAGS" AC_LANG_POP fi @@ -751,7 +751,7 @@ if test "$GXX" = "yes"; then # programmer deliberately has an unused parameter (e.g. because it's used # as a callback or similar function pointer use). - CXXFLAGS="-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 $CXXFLAGS" + CXXFLAGS="-Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 $CXXFLAGS" dnl Test for arch-specific situations. case "$host_cpu" in |
