forked from Imagelibrary/binutils-gdb
* configure.ac (build_warnings): Add -Wno-format for mingw.
* configure: Regenerated.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* configure.ac (build_warnings): Add -Wno-format for mingw.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
|
2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* NEWS: Make indentation consistent. Move exec tracing entry out
|
* NEWS: Make indentation consistent. Move exec tracing entry out
|
||||||
|
|||||||
6
gdb/configure
vendored
6
gdb/configure
vendored
@@ -26774,6 +26774,12 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
|
|||||||
-Wformat-nonliteral -Wno-pointer-sign \
|
-Wformat-nonliteral -Wno-pointer-sign \
|
||||||
-Wno-unused -Wno-switch -Wno-char-subscripts"
|
-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.
|
# Check whether --enable-build-warnings or --disable-build-warnings was given.
|
||||||
if test "${enable_build_warnings+set}" = set; then
|
if test "${enable_build_warnings+set}" = set; then
|
||||||
enableval="$enable_build_warnings"
|
enableval="$enable_build_warnings"
|
||||||
|
|||||||
@@ -1331,6 +1331,12 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
|
|||||||
-Wformat-nonliteral -Wno-pointer-sign \
|
-Wformat-nonliteral -Wno-pointer-sign \
|
||||||
-Wno-unused -Wno-switch -Wno-char-subscripts"
|
-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,
|
AC_ARG_ENABLE(build-warnings,
|
||||||
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
|
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
|
|||||||
Reference in New Issue
Block a user