[notmuch] [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due to ignored write return values
Dirk-Jan Binnema
djcb.bulk at gmail.com
Mon Nov 23 03:11:55 PST 2009
On Mon, Nov 23, 2009 at 9:34 AM, Karl Wiberg <kha at treskal.com> wrote:
> On Mon, Nov 23, 2009 at 7:20 AM, Dirk-Jan C. Binnema
> <djcb.bulk at gmail.com> wrote:
>
> > + ssize_t ignored;
> > static char msg[] = "Stopping... \n";
> > - write(2, msg, sizeof(msg)-1);
> > +
> > + ignored = write(2, msg, sizeof(msg)-1);
> > interrupted = 1;
> > }
>
> Didn't the "(void)" suggestion work?
>
>
I actually preferred that solution, but unfortunately, it didn't stop gcc
from complaining...
Best wishes,
Dirk.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091123/7ea82ed8/attachment.htm>
More information about the notmuch
mailing list