Silence compiler warning
authorMagnus Hagander
Sun, 1 Jan 2017 12:23:43 +0000 (13:23 +0100)
committerMagnus Hagander
Sun, 1 Jan 2017 12:25:01 +0000 (13:25 +0100)
Caused by the backpatch of f650882 past the point where interrupt
handling was changed.

Noted by Dean Rasheed

src/backend/replication/basebackup.c

index 3c7a092ff215522b7af862158e194661f9c6adde..bcb5eff620bef641f988e71a3843f78f45c8eac2 100644 (file)
@@ -1281,7 +1281,6 @@ throttle(size_t increment)
    int64       elapsed,
                elapsed_min,
                sleep;
-   int         wait_result;
 
    if (throttling_counter < 0)
        return;
@@ -1304,9 +1303,9 @@ throttle(size_t increment)
         * (TAR_SEND_SIZE / throttling_sample * elapsed_min_unit) should be
         * the maximum time to sleep. Thus the cast to long is safe.
         */
-       wait_result = WaitLatch(&MyWalSnd->latch,
-                            WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH,
-                               (long) (sleep / 1000));
+       WaitLatch(&MyWalSnd->latch,
+                 WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH,
+                 (long) (sleep / 1000));
    }
 
    /*