[C++] Default to -Werror in C++ mode too
authorPedro Alves <palves@redhat.com>
Thu, 19 Nov 2015 14:32:54 +0000 (14:32 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 19 Nov 2015 14:32:54 +0000 (14:32 +0000)
Both x86_64 GNU/Linux and x86_64 mingw-w64 build cleanly with
--enable-targets=all.  This enables -Werror by default in C++ mode
too, in order to let the buildbot catch C++ build regressions for us.

gdb/ChangeLog:
2015-11-19  Pedro Alves  <palves@redhat.com>

* configure.ac (ERROR_ON_WARNING): Don't check whether in C++
mode.
* configure: Regenerate.

gdb/gdbserver/ChangeLog:
2015-11-19  Pedro Alves  <palves@redhat.com>

* configure.ac (ERROR_ON_WARNING): Don't check whether in C++
mode.
* configure: Regenerate.

gdb/ChangeLog
gdb/configure
gdb/configure.ac
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/gdbserver/configure.ac

index f136fb70af79e6cae778b822ced32be4fa1fa026..0539d969da204f468825a0be7885f8fb8957e675 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-19  Pedro Alves  <palves@redhat.com>
+
+       * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
+       mode.
+       * configure: Regenerate.
+
 2015-11-19  Pedro Alves  <palves@redhat.com>
 
        * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
index 8ef3cf26a7aa11a95e801802dc97375a09385f50..249a39975b027e6fad0f550282e8df2a3aa4ddb9 100755 (executable)
@@ -14293,11 +14293,8 @@ if test "${enable_werror+set}" = set; then :
 fi
 
 
-# Enable -Werror by default when using gcc in C mode.  Leave it off
-# for C++ until we're warning clean.  Turn it off for releases.
-if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
-   && test x"$enable_build_with_cxx" != x"yes" \
-   && $development; then
+# Enable -Werror by default when using gcc.  Turn it off for releases.
+if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
     ERROR_ON_WARNING=yes
 fi
 
index 29d0b63889ac3e881d661d07c7ef0de834065984..ebd797bf51940c614b295e24e5a2b37998cabf89 100644 (file)
@@ -1932,11 +1932,8 @@ AC_ARG_ENABLE(werror,
      *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
    esac])
 
-# Enable -Werror by default when using gcc in C mode.  Leave it off
-# for C++ until we're warning clean.  Turn it off for releases.
-if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
-   && test x"$enable_build_with_cxx" != x"yes" \
-   && $development; then
+# Enable -Werror by default when using gcc.  Turn it off for releases.
+if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
     ERROR_ON_WARNING=yes
 fi
 
index 012ea5e254f188c54c771ca217e0a39a0c75d781..c5152491377372e64efdf44c494c1d62a6661127 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-19  Pedro Alves  <palves@redhat.com>
+
+       * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
+       mode.
+       * configure: Regenerate.
+
 2015-11-19  Pedro Alves  <palves@redhat.com>
 
        * configure: Regenerate.
index 4b9aa9553b96b51efb7533f69f9a54ec00233b1d..87dfda06eed100d47c5553b0cdce2f2972bd3c14 100755 (executable)
@@ -6106,8 +6106,7 @@ if test "${enable_werror+set}" = set; then :
 fi
 
 
-# Enable -Werror by default when using gcc in C mode.  Leave it off
-# for C++ until we're warning clean.  Turn it off for releases.
+# Enable -Werror by default when using gcc.  Turn it off for releases.
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
    && test x"$enable_build_with_cxx" != x"yes" \
    && $development; then
index 0fe0a357ec611fa8d82b52f6b2c269fe927f7980..d50d0f1582682ca15260497e63ed2b56c3a91a3a 100644 (file)
@@ -157,8 +157,7 @@ AC_ARG_ENABLE(werror,
      *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
    esac])
 
-# Enable -Werror by default when using gcc in C mode.  Leave it off
-# for C++ until we're warning clean.  Turn it off for releases.
+# Enable -Werror by default when using gcc.  Turn it off for releases.
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
    && test x"$enable_build_with_cxx" != x"yes" \
    && $development; then
This page took 0.049334 seconds and 4 git commands to generate.