aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-11-19 14:32:54 +0000
committerPedro Alves <palves@redhat.com>2015-11-19 14:32:54 +0000
commit9a0847060d5823ec520ebf0c3e307e26442e5b8c (patch)
tree6a8325664b122b75605901d1cf16266353e7ea79 /gdb/gdbserver
parentdad44a1fbaa460e5ff80ce203196bc1c1317dc60 (diff)
downloadgdb-9a0847060d5823ec520ebf0c3e307e26442e5b8c.zip
gdb-9a0847060d5823ec520ebf0c3e307e26442e5b8c.tar.gz
gdb-9a0847060d5823ec520ebf0c3e307e26442e5b8c.tar.bz2
[C++] Default to -Werror in C++ mode too
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rwxr-xr-xgdb/gdbserver/configure3
-rw-r--r--gdb/gdbserver/configure.ac3
3 files changed, 8 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 012ea5e..c515249 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,11 @@
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.
2015-11-19 Yao Qi <yao.qi@linaro.org>
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 4b9aa95..87dfda0 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -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
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index 0fe0a35..d50d0f1 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -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