Обсуждение: pgsql: Suppress -Wunused-result warnings about write() and fwrite().

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)