[notmuch] [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due to ignored write return values
Dirk-Jan C. Binnema
djcb.bulk at gmail.com
Sun Nov 22 22:20:40 PST 2009
From: Dirk-Jan C. Binnema <djcb.bulk at 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
More information about the notmuch
mailing list