Re: [PATCH v3 2/2] Silence buildbot warnings about unused results

Subject: Re: [PATCH v3 2/2] Silence buildbot warnings about unused results

Date: Fri, 20 Jan 2012 16:00:05 +0200

To: Austin Clements, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Thu, 19 Jan 2012 17:29:19 -0500, Austin Clements <amdragon@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

Thread: