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

Karl Wiberg kha at treskal.com
Sun Nov 22 23:34:32 PST 2009


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?

-- 
Karl Wiberg, kha at treskal.com
   subrabbit.wordpress.com
   www.treskal.com/kalle


More information about the notmuch mailing list