pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Suppress -Wunused-result warning about write()
2+ messages / 2 participants
[nested] [flat]

* pgsql: Suppress -Wunused-result warning about write()
@ 2012-05-27 20:38  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2012-05-27 20:38 UTC (permalink / raw)
  To: pgsql-committers

Suppress -Wunused-result warning about write()

This is related to aa90e148ca70a235897b1227f1a7cd1c66bc5368, but this
code is only used under -DLINUX_OOM_ADJ, so it was apparently
overlooked then.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/27314d32a883e3c4667d8249c3d4760fed917a12

Modified Files
--------------
src/backend/postmaster/fork_process.c |    4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Suppress -Wunused-result warning about write().
@ 2023-12-06 23:18  Nathan Bossart <nathan@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Nathan Bossart @ 2023-12-06 23:18 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Suppress -Wunused-result warning about write().

pg_test_fsync's signal_cleanup() intentionally ignores the write()
result since there's not much we could do about it, but certain
compilers make that harder than it ought to be.

This was missed in commit 52e98d4502.

Reviewed-by: Tristan Partin, Peter Eisentraut
Discussion: https://postgr.es/m/20231206161839.GA2828158%40nathanxps13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c2a465b2c94fb44211c350f73b5a11978d3b4536

Modified Files
--------------
src/bin/pg_test_fsync/pg_test_fsync.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2023-12-06 23:18 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-05-27 20:38 pgsql: Suppress -Wunused-result warning about write() Peter Eisentraut <peter_e@gmx.net>
2023-12-06 23:18 pgsql: Suppress -Wunused-result warning about write(). Nathan Bossart <nathan@postgresql.org>

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