Re: [notmuch] [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due to ignored write return values

Subject: Re: [notmuch] [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due to ignored write return values

Date: Mon, 23 Nov 2009 18:14:12 +0200

To: Jed Brown

Cc: notmuch@notmuchmail org, djcb@djcbsoftware.nl

From: Dirk-Jan Binnema


Hi Jed,

On Mon, Nov 23, 2009 at 4:24 PM, Jed Brown <jed@59a2.org> wrote:

>
>
> But I'm confused here because I don't currently see any warnings with
> gcc-4.4.2.  Actually this must be a bug because I get no warnings for
> the blatantly unused
>
>  malloc(5);
>

Did you try it with -O2? Without optimizations many of the warnings are not
issued.

Best wishes,
Dirk.

Thread: