Skip to content

Commit 27314d3

Browse files
committed
Suppress -Wunused-result warning about write()
This is related to aa90e14, but this code is only used under -DLINUX_OOM_ADJ, so it was apparently overlooked then.
1 parent a8b92b6 commit 27314d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/postmaster/fork_process.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ fork_process(void)
8787
if (fd >= 0)
8888
{
8989
char buf[16];
90+
int rc;
9091

9192
snprintf(buf, sizeof(buf), "%d\n", LINUX_OOM_ADJ);
92-
(void) write(fd, buf, strlen(buf));
93+
rc = write(fd, buf, strlen(buf));
94+
(void) rc;
9395
close(fd);
9496
}
9597
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy