pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Suppress -Wunused-result warnings about write() and fwrite().
Date: Wed, 19 Oct 2011 01:37:59 +0000
Message-ID: <E1RGL6V-0008RD-Lt@gemulon.postgresql.org> (raw)

Suppress -Wunused-result warnings about write() and fwrite().

This is merely an exercise in satisfying pedants, not a bug fix, because
in every case we were checking for failure later with ferror(), or else
there was nothing useful to be done about a failure anyway.  Document
the latter cases.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aa90e148ca70a235897b1227f1a7cd1c66bc5368

Modified Files
--------------
src/backend/access/transam/xlog.c |    6 +++-
src/backend/commands/copy.c       |    6 ++--
src/backend/postmaster/pgstat.c   |   16 ++++++++++----
src/backend/utils/error/elog.c    |   38 +++++++++++++++++++++++++++++++-----
src/bin/psql/common.c             |   12 ++++++++--
5 files changed, 59 insertions(+), 19 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1RGL6V-0008RD-Lt@gemulon.postgresql.org>
Permalink:  ../E1RGL6V-0008RD-Lt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1RGL6V-0008RD-Lt@gemulon.postgresql.org

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Suppress -Wunused-result warnings about write() and fwrite().
  In-Reply-To: <E1RGL6V-0008RD-Lt@gemulon.postgresql.org>
  References: <E1RGL6V-0008RD-Lt@gemulon.postgresql.org>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox