diff options
Diffstat (limited to 'gcc/configure.ac')
| -rw-r--r-- | gcc/configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index 7a4f790..a4da3d2 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -346,6 +346,15 @@ if test $ac_cv_prog_cc_w_old_style_definition = yes ; then strict1_warn="${strict1_warn} -Wold-style-definition" fi +# Enable -Werror, period. +AC_ARG_ENABLE(werror_always, +[ --enable-werror-always enable -Werror always], [], +[enable_werror_always=no]) +if test x${enable_werror_always} = xyes ; then + strict1_warn="${strict1_warn} -Werror" + WERROR=-Werror +fi + # If the native compiler is GCC, we can enable warnings even in stage1. # That's useful for people building cross-compilers, or just running a # quick `make'. |
