pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Suppress -Wunused-result warnings about write() and fwrite(). 5+ messages / 1 participants [nested] [flat]
* pgsql: Suppress -Wunused-result warnings about write() and fwrite(). @ 2011-10-19 01:37 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2011-10-19 01:37 UTC (permalink / raw) To: 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(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Suppress -Wunused-result warnings about write(), again. @ 2016-06-03 15:29 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2016-06-03 15:29 UTC (permalink / raw) To: 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 ------ master Details ------- http://git.postgresql.org/pg/commitdiff/6c72a28e5ce36a964bbcac2fe6b0b7bcd9251667 Modified Files -------------- src/bin/pg_dump/parallel.c | 14 ++++++++++++-- src/bin/psql/common.c | 26 +++++++++++++++----------- 2 files changed, 27 insertions(+), 13 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Suppress -Wunused-result warnings about write(), again. @ 2016-06-03 15:29 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2016-06-03 15:29 UTC (permalink / raw) To: 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_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ec5622351208989620b6563b7890922e28e65e7b Modified Files -------------- src/bin/pg_dump/parallel.c | 14 ++++++++++++-- src/bin/psql/common.c | 26 +++++++++++++++----------- 2 files changed, 27 insertions(+), 13 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Suppress -Wunused-result warnings about write(), again. @ 2016-06-03 15:29 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2016-06-03 15:29 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Suppress -Wunused-result warnings about write(), again. @ 2016-06-03 15:29 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2016-06-03 15:29 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2016-06-03 15:29 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2011-10-19 01:37 pgsql: Suppress -Wunused-result warnings about write() and fwrite(). Tom Lane <tgl@sss.pgh.pa.us> 2016-06-03 15:29 pgsql: Suppress -Wunused-result warnings about write(), again. Tom Lane <tgl@sss.pgh.pa.us> 2016-06-03 15:29 pgsql: Suppress -Wunused-result warnings about write(), again. Tom Lane <tgl@sss.pgh.pa.us> 2016-06-03 15:29 pgsql: Suppress -Wunused-result warnings about write(), again. Tom Lane <tgl@sss.pgh.pa.us> 2016-06-03 15:29 pgsql: Suppress -Wunused-result warnings about write(), again. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox