nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] build: prevent -Werror from interfering with co


From: Mike Frysinger
Subject: Re: [Nano-devel] [PATCH] build: prevent -Werror from interfering with configure checks
Date: Sun, 26 Jun 2016 16:29:01 -0400

On 26 Jun 2016 17:13, Benno Schulenberg wrote:
> On Wed, Jun 22, 2016, at 12:38, Mike Frysinger wrote:
> > On 22 Jun 2016 11:15, Benno Schulenberg wrote:
> > > Hm.  How then should I go about when I want anything that is
> > > compiled on this box to be compiled with -Werror?  If I can't
> > > add it to CFLAGS, where should I put it?
> > 
> > you can add a --enable-werror configure flag that'll take care of
> > appending it at the end of the script
> 
> Where does --enable-werror come from?  My configures don't have it:
>   configure: WARNING: unrecognized options: --enable-werror

right, i mean you can add it.  at the end of the configure script:

dnl Enable -Werror if possible.  Do it after all other tests.
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror], [treat compile 
warnings as errors])])
if test "$enable_werror" = "yes" || test "$GCC" = "yes" -a "$enable_werror" != 
"no"; then
  CFLAGS="-Werror $CFLAGS"
  CXXFLAGS="-Werror $CXXFLAGS"
fi
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

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