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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Suppress -Wunused-result warnings about write() and fwrite().
Дата
Msg-id E1RGL6V-0008RD-Lt@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Make the CHECKPOINT reference page more clear.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Suppress remaining -Waddress warnings from recent gcc versions.