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: Thu, 18 Feb 2010 19:23:47 -0500
- Subject: [commit/branch] -Werror no longer enabled by default
FYI:
I just checked in the following patch to make sure that a compilation
warning does not prevent a user from building a GDB release.
2010-02-19 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.114
diff -u -p -r1.114 configure.ac
--- configure.ac 25 Jan 2010 13:22:02 -0000 1.114
+++ configure.ac 19 Feb 2010 00:22:45 -0000
@@ -1527,11 +1527,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.299
diff -u -p -r1.299 configure
--- configure 25 Jan 2010 13:22:02 -0000 1.299
+++ configure 19 Feb 2010 00:22:45 -0000
@@ -13418,11 +13418,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.11378.2.1
diff -u -p -r1.11378.2.1 ChangeLog
--- ChangeLog 19 Feb 2010 00:12:50 -0000 1.11378.2.1
+++ ChangeLog 19 Feb 2010 00:22:45 -0000
@@ -1,5 +1,10 @@
2010-02-19 Joel Brobecker <brobecker@adacore.com>
+ * configure.ac: Disable -Werror by default.
+ * configure: Regenerate.
+
+2010-02-19 Joel Brobecker <brobecker@adacore.com>
+
GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
* version.in: Bump version to 7.0.90.20100218-cvs.