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

Started by Tom Lanealmost 15 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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