mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Suppress -Wunused-result warning about write()
This is related to aa90e148ca
, but this
code is only used under -DLINUX_OOM_ADJ, so it was apparently
overlooked then.
This commit is contained in:
parent
a8b92b6090
commit
27314d32a8
@ -87,9 +87,11 @@ fork_process(void)
|
||||
if (fd >= 0)
|
||||
{
|
||||
char buf[16];
|
||||
int rc;
|
||||
|
||||
snprintf(buf, sizeof(buf), "%d\n", LINUX_OOM_ADJ);
|
||||
(void) write(fd, buf, strlen(buf));
|
||||
rc = write(fd, buf, strlen(buf));
|
||||
(void) rc;
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user