[systemd-devel] [PATCH] configure: turn off -Wlogical-not-parentheses
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Mon Feb 16 19:46:25 PST 2015
On Tue, Feb 17, 2015 at 06:45:14AM +0300, Andrei Borzenkov wrote:
> В Mon, 16 Feb 2015 23:03:39 +0100
> Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> пишет:
>
> > On Mon, Feb 16, 2015 at 02:02:17PM -0800, Shawn Landden wrote:
> > > Introduced in gcc-5
> > >
> > > These errors are really annoying. I can get behind clarification of nested ifs,
> > > but this is overkill.
> > > ---
> > > configure.ac | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/configure.ac b/configure.ac
> > > index 97a29d6..e646db7 100644
> > > --- a/configure.ac
> > > +++ b/configure.ac
> > > @@ -187,6 +187,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
> > > -Wno-unused-parameter \
> > > -Wno-missing-field-initializers \
> > > -Wno-unused-result \
> > > + -Wno-logical-not-parentheses \
> > > -Werror=overflow \
> > > -Wdate-time \
> > > -Wnested-externs \
> > This does not work, gcc does not allow testing for -Wno- options.
>
> Do you mean it also did not work for all other -Wno- options or this
> is special case?
Most likely it's broken for all.
Zbyszek
More information about the systemd-devel
mailing list