unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due to ignored write return values
@ 2009-11-23  6:20 Dirk-Jan C. Binnema
  2009-11-23  7:34 ` Karl Wiberg
  0 siblings, 1 reply; 8+ messages in thread
From: Dirk-Jan C. Binnema @ 2009-11-23  6:20 UTC (permalink / raw)
  To: notmuch@notmuchmail org

From: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
Date: Mon, 23 Nov 2009 08:03:35 +0200


---
 notmuch-new.c |    4 +++-
 notmuch-tag.c |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/notmuch-new.c b/notmuch-new.c
index a2b30bd..3d04efa 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -35,8 +35,10 @@ static volatile sig_atomic_t interrupted;
 static void
 handle_sigint (unused (int sig))
 {
+    ssize_t ignored;
     static char msg[] = "Stopping...         \n";
-    write(2, msg, sizeof(msg)-1);
+    
+    ignored = write(2, msg, sizeof(msg)-1);
     interrupted = 1;
 }
 
diff --git a/notmuch-tag.c b/notmuch-tag.c
index e2311f6..ec98c3b 100644
--- a/notmuch-tag.c
+++ b/notmuch-tag.c
@@ -25,8 +25,10 @@ static volatile sig_atomic_t interrupted;
 static void
 handle_sigint (unused (int sig))
 {
+    ssize_t ignored;
+	
     static char msg[] = "Stopping...         \n";
-    write(2, msg, sizeof(msg)-1);
+    ignored = write(2, msg, sizeof(msg)-1);
     interrupted = 1;
 }
 
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-01 15:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23  6:20 [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due to ignored write return values Dirk-Jan C. Binnema
2009-11-23  7:34 ` Karl Wiberg
2009-11-23 11:11   ` Dirk-Jan Binnema
2009-11-23 13:19     ` Karl Wiberg
2009-11-23 14:24       ` Jed Brown
2009-11-23 16:14         ` Dirk-Jan Binnema
2009-11-23 16:38           ` Jed Brown
2009-12-01 15:57         ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).