From 3526781ecfbda987bc13c7b4cc76498a324b5ec6 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 9 Jun 2008 15:03:59 +0000 Subject: [PATCH] * configure.ac (build_warnings): Add -Wno-format for mingw. * configure: Regenerated. --- gdb/ChangeLog | 5 +++++ gdb/configure | 6 ++++++ gdb/configure.ac | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d51a8dfa5b..89d60700b9c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-06-09 Daniel Jacobowitz + + * configure.ac (build_warnings): Add -Wno-format for mingw. + * configure: Regenerated. + 2008-06-07 Daniel Jacobowitz * NEWS: Make indentation consistent. Move exec tracing entry out diff --git a/gdb/configure b/gdb/configure index d719a642185..5ac1a1c2205 100755 --- a/gdb/configure +++ b/gdb/configure @@ -26774,6 +26774,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 + # Check whether --enable-build-warnings or --disable-build-warnings was given. if test "${enable_build_warnings+set}" = set; then enableval="$enable_build_warnings" diff --git a/gdb/configure.ac b/gdb/configure.ac index adc4d34fe8f..8d79d8b7523 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 -- 2.30.2