aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-06-09 15:03:59 +0000
committerDaniel Jacobowitz <drow@false.org>2008-06-09 15:03:59 +0000
commit3526781ecfbda987bc13c7b4cc76498a324b5ec6 (patch)
tree27d4d97eeff75c637300a8d26f9afcdbf7ee8dae /gdb/configure.ac
parent817a14a3356d1382c6806da090f44855abbb268f (diff)
downloadgdb-3526781ecfbda987bc13c7b4cc76498a324b5ec6.zip
gdb-3526781ecfbda987bc13c7b4cc76498a324b5ec6.tar.gz
gdb-3526781ecfbda987bc13c7b4cc76498a324b5ec6.tar.bz2
* configure.ac (build_warnings): Add -Wno-format for mingw.
* configure: Regenerated.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index adc4d34..8d79d8b 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1331,6 +1331,12 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wformat-nonliteral -Wno-pointer-sign \
-Wno-unused -Wno-switch -Wno-char-subscripts"
+# Enable -Wno-format by default when using gcc on mingw since many
+# GCC versions complain about %I64.
+case "${host}" in
+ *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
+esac
+
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
[case "${enableval}" in