mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Silence compiler warnings
Commit cfdf4dc4fc
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
This commit is contained in:
@ -217,7 +217,6 @@ worker_spi_main(Datum main_arg)
|
||||
while (!got_sigterm)
|
||||
{
|
||||
int ret;
|
||||
int rc;
|
||||
|
||||
/*
|
||||
* Background workers mustn't call usleep() or any direct equivalent:
|
||||
@ -225,10 +224,10 @@ worker_spi_main(Datum main_arg)
|
||||
* necessary, but is awakened if postmaster dies. That way the
|
||||
* background process goes away immediately in an emergency.
|
||||
*/
|
||||
rc = WaitLatch(MyLatch,
|
||||
WL_LATCH_SET | WL_TIMEOUT | WL_EXIT_ON_PM_DEATH,
|
||||
worker_spi_naptime * 1000L,
|
||||
PG_WAIT_EXTENSION);
|
||||
(void) WaitLatch(MyLatch,
|
||||
WL_LATCH_SET | WL_TIMEOUT | WL_EXIT_ON_PM_DEATH,
|
||||
worker_spi_naptime * 1000L,
|
||||
PG_WAIT_EXTENSION);
|
||||
ResetLatch(MyLatch);
|
||||
|
||||
CHECK_FOR_INTERRUPTS();
|
||||
|
Reference in New Issue
Block a user