[PATCH 1/2] [pr53679] libgo: add a --enable-werror configure flag

Ian Lance Taylor iant@google.com
Tue Jan 15 14:56:00 GMT 2013


On Sun, Dec 23, 2012 at 3:30 PM, Mike Frysinger <vapier@gentoo.org> wrote:

> diff --git a/libgo/configure.ac b/libgo/configure.ac
> index 8cde50b..63d8cbc 100644
> --- a/libgo/configure.ac
> +++ b/libgo/configure.ac
> @@ -50,8 +50,11 @@ AC_PROG_AWK
>  WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
>  AC_SUBST(WARN_FLAGS)
>
> -dnl FIXME: This should be controlled by --enable-maintainer-mode.
> -WERROR="-Werror"
> +AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror],
> +                                      [turns on -Werror @<:@default=yes@:>@])])
> +if test "x$enable_werror" != "xno"; then
> +  WERROR="-Werror"
> +fi
>  AC_SUBST(WERROR)
>
>  glibgo_toolexecdir=no


Can you say something about when you needed this?  What errors were you seeing?

Ian



More information about the Gcc-patches mailing list