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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress -Wunused-result warnings about write() and fwrite().
Date: 2011-10-19 01:37:59
Message-ID: E1RGL6V-0008RD-Lt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-10-19 01:44:30 pgsql: Suppress remaining -Waddress warnings from recent gcc versions.
Previous Message Robert Haas 2011-10-19 00:15:11 pgsql: Make the CHECKPOINT reference page more clear.