diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-11-23 13:01:05 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-11-23 13:01:05 -0300 |
commit | 3be5fe2b107fae24e03c9d29d7bd7c7ad5345787 (patch) | |
tree | b6b87771e8c14a3ebfb57843e432e0de7da5a53f /contrib | |
parent | 0f75a466ac41a19214d22de73cceeb5dc792411a (diff) | |
download | postgresql-3be5fe2b107fae24e03c9d29d7bd7c7ad5345787.tar.gz postgresql-3be5fe2b107fae24e03c9d29d7bd7c7ad5345787.zip |
Silence compiler warnings
Commit cfdf4dc4fc96 left a few unnecessary assignments, one of which
caused compiler warnings, as reported by Erik Rijkers. Remove them all.
Discussion: https://postgr.es/m/df0dcca2025b3d90d946ecc508ca9678@xs4all.nl
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pg_prewarm/autoprewarm.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/contrib/pg_prewarm/autoprewarm.c b/contrib/pg_prewarm/autoprewarm.c index c2a6e5a53f7..033ad364777 100644 --- a/contrib/pg_prewarm/autoprewarm.c +++ b/contrib/pg_prewarm/autoprewarm.c @@ -207,8 +207,6 @@ autoprewarm_main(Datum main_arg) /* Periodically dump buffers until terminated. */ while (!got_sigterm) { - int rc; - /* In case of a SIGHUP, just reload the configuration. */ if (got_sighup) { @@ -219,10 +217,10 @@ autoprewarm_main(Datum main_arg) if (autoprewarm_interval <= 0) { /* We're only dumping at shutdown, so just wait forever. */ - rc = WaitLatch(&MyProc->procLatch, - WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, - -1L, - PG_WAIT_EXTENSION); + (void) WaitLatch(&MyProc->procLatch, + WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, + -1L, + PG_WAIT_EXTENSION); } else { @@ -248,10 +246,10 @@ autoprewarm_main(Datum main_arg) } /* Sleep until the next dump time. */ - rc = WaitLatch(&MyProc->procLatch, - WL_LATCH_SET | WL_TIMEOUT | WL_EXIT_ON_PM_DEATH, - delay_in_ms, - PG_WAIT_EXTENSION); + (void) WaitLatch(&MyProc->procLatch, + WL_LATCH_SET | WL_TIMEOUT | WL_EXIT_ON_PM_DEATH, + delay_in_ms, + PG_WAIT_EXTENSION); } /* Reset the latch, loop. */ |