This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/branch] -Werror no longer enabled by default
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 13 Dec 2011 08:08:50 -0500
- Subject: [commit/branch] -Werror no longer enabled by default
I just checked in the following patch to make sure that a compilation
warning does not prevent a user from building a GDB release.
2011-12-13 Joel Brobecker <brobecker@adacore.com>
* configure.ac: Disable -Werror by default.
* configure: Regenerate.
--
Joel
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.150
diff -u -p -r1.150 configure.ac
--- configure.ac 20 Nov 2011 08:59:56 -0000 1.150
+++ configure.ac 13 Dec 2011 13:07:39 -0000
@@ -1808,11 +1808,6 @@ AC_ARG_ENABLE(werror,
*) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
-# Enable -Werror by default when using gcc
-if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
- ERROR_ON_WARNING=yes
-fi
-
WERROR_CFLAGS=""
if test "${ERROR_ON_WARNING}" = yes ; then
WERROR_CFLAGS="-Werror"
Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/configure,v
retrieving revision 1.335
diff -u -p -r1.335 configure
--- configure 20 Nov 2011 08:59:56 -0000 1.335
+++ configure 13 Dec 2011 13:07:39 -0000
@@ -15146,11 +15146,6 @@ if test "${enable_werror+set}" = set; th
fi
-# Enable -Werror by default when using gcc
-if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
- ERROR_ON_WARNING=yes
-fi
-
WERROR_CFLAGS=""
if test "${ERROR_ON_WARNING}" = yes ; then
WERROR_CFLAGS="-Werror"
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.13614.2.1
diff -u -p -r1.13614.2.1 ChangeLog
--- ChangeLog 13 Dec 2011 13:06:07 -0000 1.13614.2.1
+++ ChangeLog 13 Dec 2011 13:07:39 -0000
@@ -1,5 +1,10 @@
2011-12-13 Joel Brobecker <brobecker@adacore.com>
+ * configure.ac: Disable -Werror by default.
+ * configure: Regenerate.
+
+2011-12-13 Joel Brobecker <brobecker@adacore.com>
+
GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
* version.in: Bump version to 7.3.90.20111213-cvs.