]> git.cworth.org Git - notmuch/commitdiff
Avoid compiler warnings due to ignored write return values
authorDirk-Jan C. Binnema <djcb.bulk@gmail.com>
Mon, 23 Nov 2009 06:03:35 +0000 (08:03 +0200)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Dec 2009 15:50:35 +0000 (07:50 -0800)
Glibc (at least) provides the warn_unused_result attribute on write,
(if optimizing and _FORTIFY_SOURCE is defined). So we explicitly
ignore the return value in our signal handler, where we couldn't do
anything anyway.

Compile with:

make CFLAGS="-O -D_FORTIFY_SOURCE"

before this commit to see the warning.


No differences found