[notmuch] [PATCH 2/2] * avoid gcc 4.4.1 compiler warning due to ignored 'fflush' return value

2009-12-01 Thread Dirk-Jan C. Binnema
Hi Carl, > "Carl" == Carl Worth writes: Carl> [1 ] Carl> On Mon, 23 Nov 2009 08:21:50 +0200, Dirk-Jan C. Binnema wrote: >> -#define prompt(format, ...) \ >> -do {\ >> -printf

[notmuch] [PATCH 2/2] * avoid gcc 4.4.1 compiler warning due to ignored 'fflush' return value

2009-12-01 Thread Carl Worth
On Tue, 01 Dec 2009 20:50:03 +0200, Dirk-Jan C. Binnema wrote: > Sure, that's the better solution, but note that my patch did not introduce the > undefined behavior -- it was there before. I was trying a minimal patch to > silencing the warning. Yes, the leak was my bug. And the warning was

[notmuch] [PATCH 2/2] * avoid gcc 4.4.1 compiler warning due to ignored 'fflush' return value

2009-12-01 Thread Carl Worth
On Mon, 23 Nov 2009 08:21:50 +0200, Dirk-Jan C. Binnema wrote: > -#define prompt(format, ...) \ > -do { \ > - printf (format, ##__VA_ARGS__); \ > - fflush (stdout);\ >

Re: [notmuch] [PATCH 2/2] * avoid gcc 4.4.1 compiler warning due to ignored 'fflush' return value

2009-12-01 Thread Dirk-Jan C . Binnema
Hi Carl, Carl == Carl Worth cwo...@cworth.org writes: Carl [1 text/plain (quoted-printable)] Carl On Mon, 23 Nov 2009 08:21:50 +0200, Dirk-Jan C. Binnema djcb.b...@gmail.com wrote: -#define prompt(format, ...) \ -do {

[notmuch] [PATCH 2/2] * avoid gcc 4.4.1 compiler warning due to ignored 'fflush' return value

2009-11-23 Thread Dirk-Jan C. Binnema
--- 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