[C++] Default to -Werror in C++ mode too
[deliverable/binutils-gdb.git] / gdb / configure.ac
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
 
This page took 0.023103 seconds and 4 git commands to generate.