Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e95126c

Browse files
committed
Don't use function definitions looking like old-style ones.
This fixes a bunch of somewhat pedantic warnings with new compilers. Since by far the majority of other functions definitions use the (void) style it just seems to be consistent to do so as well in the remaining few places.
1 parent f9dec81 commit e95126c

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

contrib/pg_standby/pg_standby.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ CustomizableInitialize(void)
171171
* Is the requested file ready yet?
172172
*/
173173
static bool
174-
CustomizableNextWALFileReady()
174+
CustomizableNextWALFileReady(void)
175175
{
176176
if (stat(WALFilePath, &stat_buf) == 0)
177177
{

src/backend/access/transam/twophase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ AtAbort_Twophase(void)
295295
* PGXACT entry.
296296
*/
297297
void
298-
PostPrepare_Twophase()
298+
PostPrepare_Twophase(void)
299299
{
300300
LWLockAcquire(TwoPhaseStateLock, LW_EXCLUSIVE);
301301
MyLockedGxact->locking_backend = InvalidBackendId;

src/backend/commands/trigger.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3226,7 +3226,7 @@ static SetConstraintState SetConstraintStateAddItem(SetConstraintState state,
32263226
* Gets the current query fdw tuplestore and initializes it if necessary
32273227
*/
32283228
static Tuplestorestate *
3229-
GetCurrentFDWTuplestore()
3229+
GetCurrentFDWTuplestore(void)
32303230
{
32313231
Tuplestorestate *ret;
32323232

src/backend/replication/logical/snapbuild.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ SnapBuildExportSnapshot(SnapBuild *builder)
610610
* owner back to its original value.
611611
*/
612612
void
613-
SnapBuildClearExportedSnapshot()
613+
SnapBuildClearExportedSnapshot(void)
614614
{
615615
/* nothing exported, thats the usual case */
616616
if (!ExportInProgress)

src/backend/replication/repl_scanner.l

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ replication_scanner_init(const char *str)
237237
}
238238

239239
void
240-
replication_scanner_finish()
240+
replication_scanner_finish(void)
241241
{
242242
yy_delete_buffer(scanbufhandle);
243243
scanbufhandle = NULL;

src/backend/replication/walsender.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ InitWalSender(void)
249249
* process, similar to what transaction abort does in a regular backend.
250250
*/
251251
void
252-
WalSndErrorCleanup()
252+
WalSndErrorCleanup(void)
253253
{
254254
LWLockReleaseAll();
255255

src/backend/storage/ipc/dsm_impl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ dsm_impl_pin_segment(dsm_handle handle, void *impl_private)
10271027
}
10281028

10291029
static int
1030-
errcode_for_dynamic_shared_memory()
1030+
errcode_for_dynamic_shared_memory(void)
10311031
{
10321032
if (errno == EFBIG || errno == ENOMEM)
10331033
return errcode(ERRCODE_OUT_OF_MEMORY);

src/backend/utils/time/snapmgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ GetNonHistoricCatalogSnapshot(Oid relid)
345345
* cycles we spent tracking such fine details would be well-spent.
346346
*/
347347
void
348-
InvalidateCatalogSnapshot()
348+
InvalidateCatalogSnapshot(void)
349349
{
350350
CatalogSnapshotStale = true;
351351
}

src/bin/pg_resetxlog/pg_resetxlog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ PrintControlValues(bool guessed)
703703
* Print the values to be changed.
704704
*/
705705
static void
706-
PrintNewControlValues()
706+
PrintNewControlValues(void)
707707
{
708708
char fname[MAXFNAMELEN];
709709

src/pl/plperl/plperl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2993,7 +2993,7 @@ plperl_hash_from_tuple(HeapTuple tuple, TupleDesc tupdesc)
29932993

29942994

29952995
static void
2996-
check_spi_usage_allowed()
2996+
check_spi_usage_allowed(void)
29972997
{
29982998
/* see comment in plperl_fini() */
29992999
if (plperl_ending)

0 commit comments

Comments
 (0)