This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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-04-03  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.144
diff -u -p -r1.144 configure.ac
--- configure.ac	17 Mar 2011 13:19:10 -0000	1.144
+++ configure.ac	3 Apr 2011 16:32:29 -0000
@@ -1739,11 +1739,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.329
diff -u -p -r1.329 configure
--- configure	17 Mar 2011 13:19:09 -0000	1.329
+++ configure	3 Apr 2011 16:32:29 -0000
@@ -14817,11 +14817,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.12887.2.1
diff -u -p -r1.12887.2.1 ChangeLog
--- ChangeLog	3 Apr 2011 16:31:05 -0000	1.12887.2.1
+++ ChangeLog	3 Apr 2011 16:32:29 -0000
@@ -1,5 +1,10 @@
 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
 
+	* configure.ac: Disable -Werror by default.
+	* configure: Regenerate.
+
+2011-04-03  Joel Brobecker  <brobecker@adacore.com>
+
 	GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
 	* version.in: Bump version to 7.2.90.20110401-cvs.
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]