[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] Fix compilation problems associated with -Wunused-result
From: |
Brad Hards |
Subject: |
Re: [PATCH 1/3] Fix compilation problems associated with -Wunused-result and -Werror |
Date: |
Mon, 30 May 2011 15:42:38 +1000 |
User-agent: |
KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.5.5; x86_64; ; ) |
On Mon, 30 May 2011 02:03:51 pm Glenn Maynard wrote:
> On Sun, May 29, 2011 at 11:37 PM, Brad Hards <address@hidden> wrote:
> > I agree, but example code should compile, and with a current git checkout
> > and a current ubuntu (11.04) gcc configuration, it won't (because of
> > -Werror)
> >
> > Its the lesser of two bad options.
>
> You can force -Werror off in examples/Makefile.am.
>
> AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS) -Wno-error
That will turn it off everywhere in the examples, which kind-of defeats the
purpose of using it in the first place. If you're keen for that kind of change,
then turning off the unused result warning would probably be better.
Brad