Enable -Werror by default

This commit is contained in:
Nick Clifton
2005-03-16 16:17:14 +00:00
parent 9b265ec209
commit 1ad12f975f
18 changed files with 831 additions and 502 deletions

View File

@@ -1,3 +1,11 @@
2005-03-16 Nick Clifton <nickc@redhat.com>
Ben Elliston <bje@au.ibm.com>
* configure.in (error-on-warning): New switch: Add -Werror to the
compiler command line. Enabled by default. Disable via
--disable-error-on-warning.
* configure: Regenerate.
2005-03-15 Daniel Marques <marques@cs.cornell.edu>
Nick Clifton <nickc@redhat.com>

483
binutils/configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -30,6 +30,22 @@ AC_ARG_ENABLE(commonbfdlib,
esac])dnl
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
AC_ARG_ENABLE(error-on-warning,
[ --enable-error-on-warning treat compile warnings as errors],
[case "${enableval}" in
yes | y) ERROR_ON_WARNING="yes" ;;
no | n) ERROR_ON_WARNING="no" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
esac])
# Enable -Werror by default, suppressing it only for --disable-error-on-warning
# or --disable-build-warnings.
if test "${ERROR_ON_WARNING}" != no
then
build_warnings="$build_warnings -Werror"
fi
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
[case "${enableval}" in