Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27314d3

Browse files
committed
Suppress -Wunused-result warning about write()
This is related toaa90e14, but thiscode is only used under -DLINUX_OOM_ADJ, so it was apparentlyoverlooked then.
1 parenta8b92b6 commit27314d3

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
charbuf[16];
90+
intrc;
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)

[8]ページ先頭

©2009-2025 Movatter.jp