pgsql: Suppress -Wunused-result warnings about write(), again. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Suppress -Wunused-result warnings about write(), again.
Date
Msg-id E1b8r2j-0002fm-CR@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Suppress -Wunused-result warnings about write(), again.

Adopt the same solution as in commit aa90e148ca70a235, but this time
let's put the ugliness inside the write_stderr() macro, instead of
expecting each call site to deal with it.  Back-port that decision
into psql/common.c where I got the macro from in the first place.

Per gripe from Peter Eisentraut.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4a21c6fd78052d394ba6ba31753d241c3c12a920

Modified Files
--------------
src/bin/pg_dump/parallel.c | 14 ++++++++++++--
src/bin/psql/common.c      | 26 +++++++++++++++-----------
2 files changed, 27 insertions(+), 13 deletions(-)


pgsql-committers by date:

Previous
From: Greg Stark
Date:
Subject: pgsql: Fix various common mispellings.
Next
From: Tom Lane
Date:
Subject: pgsql: Suppress -Wunused-result warnings about write(), again.