summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-05 10:38:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-05 10:38:32 +0000
commit6dffe9702d4ea9a851005c2437c48fcfac865431 (patch)
tree9c193ed8709cf2a76013fe1db2f9511817ef6f68 /configure.ac
parentf71139750d165dc2b60b7c3584bfd332af6b9231 (diff)
downloadcurl-6dffe9702d4ea9a851005c2437c48fcfac865431.tar.gz
when using --enable-debug and gcc, provide the -Wno-format-nonliteral option
to prevent the warning in mprintf.c: (currently line 930) "format not a string literal, argument types not checked"
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3c6759335..b96dd1565 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1031,7 +1031,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
CFLAGS="$CFLAGS -g"
if test "$GCC" = "yes"; then
- CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs"
+ CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-format-nonliteral -Wundef -Wpointer-arith -Wnested-externs"
dnl here's a more aggressive set to use:
dnl CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wfloat-equal -Wsign-compare -Wunreachable-code"