mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
Enable -Werror by default
This commit is contained in:
@@ -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
483
binutils/configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user