From: Dirk-Jan C. Binnema Date: Mon, 23 Nov 2009 06:03:35 +0000 (+0200) Subject: Avoid compiler warnings due to ignored write return values X-Git-Tag: 0.1~275 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=5f0b2ece161b16321792d9ff2f76bcc33a3b6b42;hp=5f0b2ece161b16321792d9ff2f76bcc33a3b6b42;p=notmuch Avoid compiler warnings due to ignored write return values 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. ---