Add missing "void" to prototypes.
authorRobert Haas
Tue, 17 Dec 2019 18:56:19 +0000 (13:56 -0500)
committerRobert Haas
Tue, 17 Dec 2019 18:56:19 +0000 (13:56 -0500)
Commit 5910d6c7e311f0b14e3d3cb9ce3597c01d3a3cde got this wrong.

Report and patch by Andrew Gierth.

Discussion: http://postgr.es/m/[email protected]

src/backend/postmaster/autovacuum.c
src/backend/postmaster/checkpointer.c

index 1792008ebe51cdddda484fa0f7cbede4c215edfe..7fe9e1d440ac450deab595ee436e3bd7f04260b1 100644 (file)
@@ -311,7 +311,7 @@ NON_EXEC_STATIC void AutoVacLauncherMain(int argc, char *argv[]) pg_attribute_no
 
 static Oid do_start_worker(void);
 static void HandleAutoVacLauncherInterrupts(void);
-static void AutoVacLauncherShutdown() pg_attribute_noreturn();
+static void AutoVacLauncherShutdown(void) pg_attribute_noreturn();
 static void launcher_determine_sleep(bool canlaunch, bool recursing,
                                     struct timeval *nap);
 static void launch_worker(TimestampTz now);
index 3f35b324c33c8aba54ac89c4f74f9440e3db1d6c..df527ac0215fc7c39c0816da3913a50bd3bc43ce 100644 (file)
@@ -161,7 +161,7 @@ static pg_time_t last_xlog_switch_time;
 
 /* Prototypes for private functions */
 
-static void HandleCheckpointerInterrupts();
+static void HandleCheckpointerInterrupts(void);
 static void CheckArchiveTimeout(void);
 static bool IsCheckpointOnSchedule(double progress);
 static bool ImmediateCheckpointRequested(void);