Skip to content

Commit 6291b25

Browse files
committed
Remove unnecessary semicolons after goto labels
According to the C standard, a label must followed by a statement. If there was ever a time we needed an empty statement here, it was a long time ago. Japin Li Reviewed by Julien Rouhaud Discussion: https://www.postgresql.org/message-id/MEYP282MB16690F40189A4F060B41D56DB65E9%40MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
1 parent 357cfef commit 6291b25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/access/transam/slru.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ SimpleLruTruncate(SlruCtl ctl, int cutoffPage)
12391239
*/
12401240
LWLockAcquire(shared->ControlLock, LW_EXCLUSIVE);
12411241

1242-
restart:;
1242+
restart:
12431243

12441244
/*
12451245
* While we are holding the lock, make an important safety check: the

src/backend/executor/nodeModifyTable.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ ExecDelete(ModifyTableContext *context,
13731373
* special-case behavior needed for referential integrity updates in
13741374
* transaction-snapshot mode transactions.
13751375
*/
1376-
ldelete:;
1376+
ldelete:
13771377
result = ExecDeleteAct(context, resultRelInfo, tupleid, changingPart);
13781378

13791379
switch (result)
@@ -1855,7 +1855,7 @@ ExecUpdateAct(ModifyTableContext *context, ResultRelInfo *resultRelInfo,
18551855
* then trigger.c will have done table_tuple_lock to lock the correct
18561856
* tuple, so there's no need to do them again.)
18571857
*/
1858-
lreplace:;
1858+
lreplace:
18591859

18601860
/* ensure slot is independent, consider e.g. EPQ */
18611861
ExecMaterializeSlot(slot);
@@ -2686,7 +2686,7 @@ ExecMergeMatched(ModifyTableContext *context, ResultRelInfo *resultRelInfo,
26862686
econtext->ecxt_innertuple = context->planSlot;
26872687
econtext->ecxt_outertuple = NULL;
26882688

2689-
lmerge_matched:;
2689+
lmerge_matched:
26902690

26912691
/*
26922692
* This routine is only invoked for matched rows, and we must have found

0 commit comments

Comments
 (0)