]> granicus.if.org Git - postgresql/commit - src/bin/psql/common.c
Suppress -Wunused-result warnings about write() and fwrite().
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 Oct 2011 01:37:51 +0000 (21:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 Oct 2011 01:37:51 +0000 (21:37 -0400)
commitaa90e148ca70a235897b1227f1a7cd1c66bc5368
treec8e8b677d4b687ef60bdd74dd096dc5ee45765e6
parentc53d3a9ee1b1c85c7d905fb8ca80d327a55f1dfb
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.
src/backend/access/transam/xlog.c
src/backend/commands/copy.c
src/backend/postmaster/pgstat.c
src/backend/utils/error/elog.c
src/bin/psql/common.c