unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
To: "notmuch@notmuchmail org" <notmuch@notmuchmail.org>
Subject: [PATCH 2/2] * avoid gcc 4.4.1 compiler warning due to ignored 'fflush' return value
Date: Mon, 23 Nov 2009 08:21:50 +0200	[thread overview]
Message-ID: <87r5rpyd4x.wl%djcb@djcbsoftware.nl> (raw)



---
 notmuch-setup.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/notmuch-setup.c b/notmuch-setup.c
index d06fbf8..c50f812 100644
--- a/notmuch-setup.c
+++ b/notmuch-setup.c
@@ -100,12 +100,13 @@ notmuch_setup_command (unused (void *ctx),
     unsigned int i;
     int is_new;
 
-#define prompt(format, ...)				\
-    do {						\
-	printf (format, ##__VA_ARGS__);			\
-	fflush (stdout);				\
-	getline (&response, &response_size, stdin);	\
-	chomp_newline (response);			\
+#define prompt(format, ...)					\
+    do {							\
+	int ignored;						\
+	printf (format, ##__VA_ARGS__);				\
+	fflush (stdout);					\
+	ignored = getline (&response, &response_size, stdin);	\
+	chomp_newline (response);				\
     } while (0)
 
     config = notmuch_config_open (ctx, NULL, &is_new);
-- 
1.6.3.3

             reply	other threads:[~2009-11-23  6:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23  6:21 Dirk-Jan C. Binnema [this message]
2009-12-01 16:08 ` [PATCH 2/2] * avoid gcc 4.4.1 compiler warning due to ignored 'fflush' return value Carl Worth
2009-12-01 18:50   ` Dirk-Jan C. Binnema
2009-12-02  3:01     ` Carl Worth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5rpyd4x.wl%djcb@djcbsoftware.nl \
    --to=djcb.bulk@gmail.com \
    --cc=djcb@djcbsoftware.nl \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).