From 9a0847060d5823ec520ebf0c3e307e26442e5b8c Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 19 Nov 2015 14:32:54 +0000 Subject: [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 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++ mode. * configure: Regenerate. gdb/gdbserver/ChangeLog: 2015-11-19 Pedro Alves * configure.ac (ERROR_ON_WARNING): Don't check whether in C++ mode. * configure: Regenerate. --- gdb/configure | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gdb/configure') diff --git a/gdb/configure b/gdb/configure index 8ef3cf2..249a399 100755 --- a/gdb/configure +++ b/gdb/configure @@ -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 -- cgit v1.1