diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-05-27 22:35:01 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-05-27 22:35:01 +0300 |
commit | 27314d32a883e3c4667d8249c3d4760fed917a12 (patch) | |
tree | 3d98eba4368a3c9c35f863e294928b69952445ac /src | |
parent | a8b92b6090f14a3a84d2b904eff1794e21047fae (diff) | |
download | postgresql-27314d32a883e3c4667d8249c3d4760fed917a12.tar.gz postgresql-27314d32a883e3c4667d8249c3d4760fed917a12.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/fork_process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/postmaster/fork_process.c b/src/backend/postmaster/fork_process.c index ef0f7b1cf5f..c99ed432655 100644 --- a/src/backend/postmaster/fork_process.c +++ b/src/backend/postmaster/fork_process.c @@ -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); } } |