Suppress -Wunused-result warnings about write(), again.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/parallel.c | modified | +12 −2 |
| src/bin/psql/common.c | modified | +15 −11 |