coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: turn on --enable-gcc-warnings when in git tree


From: Bernhard Voelker
Subject: Re: turn on --enable-gcc-warnings when in git tree
Date: Thu, 6 Sep 2012 15:02:54 +0200 (CEST)

On September 6, 2012 at 2:41 PM Eric Blake <address@hidden> wrote:

> On 09/06/2012 01:11 AM, Bernhard Voelker wrote:
> > I'll be busy with replacing a dying hard disk this weekend
> > anyway ;-(

...

> This patch should do it (although I didn't really stress-test it, but
> just whipped something up for the purposes of a fast reply).  If you
> like it, I'll turn it into a formal patch before committing.
>
> diff --git i/configure.ac w/configure.ac
> index d087c33..e1aa6ca 100644
> --- i/configure.ac
> +++ w/configure.ac
> @@ -75,7 +75,11 @@ AC_ARG_ENABLE([gcc-warnings],
>       *)      AC_MSG_ERROR([bad value $enableval for gcc-warnings
> option]) ;;
>     esac
>     gl_gcc_warnings=$enableval],
> -  [gl_gcc_warnings=no]
> +  [if test -d "$srcdir"/.git; then
> +     gl_gcc_warnings=yes
> +   else
> +     gl_gcc_warnings=no
> +   fi]
>  )

Thanks for working on that.
Unfortunately, I currently cannot test that (see above),
although it looks okay for me.

Have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]