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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress -Wunused-result warnings about write(), again.
Date: 2016-06-03 15:29:49
Message-ID: E1b8r2j-0002fl-CO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/53c2601a59fc18bd33713162504401f7fec2e2f2

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

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-06-03 15:59:11 pgsql: Fix comment to be more accurate.
Previous Message Greg Stark 2016-06-03 15:11:28 pgsql: Fix various common mispellings.