projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add vmfunc
[deliverable/binutils-gdb.git]
/
bfd
/
warning.m4
diff --git
a/bfd/warning.m4
b/bfd/warning.m4
index b4a2f48f8ba21fc337fca7c99d4233a0a2d50b91..6b846bf4ea32c953e259d4ebd6d875b890577db7 100644
(file)
--- a/
bfd/warning.m4
+++ b/
bfd/warning.m4
@@
-1,7
+1,8
@@
dnl Common configure.in fragment
AC_DEFUN([AM_BINUTILS_WARNINGS],[
dnl Common configure.in fragment
AC_DEFUN([AM_BINUTILS_WARNINGS],[
-GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow")
AC_ARG_ENABLE(werror,
[ --enable-werror treat compile warnings as errors],
AC_ARG_ENABLE(werror,
[ --enable-werror treat compile warnings as errors],
@@
-11,7
+12,7
@@
AC_ARG_ENABLE(werror,
*) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
*) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
-#
Enable -Wno-
format by default when using gcc on mingw
+#
Disable -W
format by default when using gcc on mingw
case "${host}" in
*-*-mingw32*)
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
case "${host}" in
*-*-mingw32*)
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
This page took
0.023446 seconds
and
4
git commands to generate.