From 77ec8108a10a8d372bed6298e22c89d7de651577 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Tue, 20 Dec 2011 15:20:04 +0000 Subject: notmuch: Quiet buildbot warnings. Cast away the result of various *write functions. Provide a default value for some variables to avoid "use before set" warnings. --- notmuch-new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'notmuch-new.c') diff --git a/notmuch-new.c b/notmuch-new.c index bfb46001..3512de72 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -67,7 +67,7 @@ handle_sigint (unused (int sig)) { static char msg[] = "Stopping... \n"; - write(2, msg, sizeof(msg)-1); + (void) write(2, msg, sizeof(msg)-1); interrupted = 1; } -- cgit v1.2.3