[PATCH v3 2/2] Silence buildbot warnings about unused results
Tomi Ollila
tomi.ollila at iki.fi
Fri Jan 20 06:00:05 PST 2012
On Thu, 19 Jan 2012 17:29:19 -0500, Austin Clements <amdragon at MIT.EDU> wrote:
> This ignores the results of the two writes in sigint handlers even
> harder than before.
>
> While my libc lacks the declarations that trigger these warnings, this
> can be tested by adding the following to notmuch.h:
>
> __attribute__((warn_unused_result))
> ssize_t write(int fd, const void *buf, size_t count);
> ---
+1
Tomi
More information about the notmuch
mailing list