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
This commit is contained in:
John Naylor 2022-10-10 15:08:38 +07:00
parent 357cfefb09
commit 6291b2546c
2 changed files with 4 additions and 4 deletions

View File

@ -1239,7 +1239,7 @@ SimpleLruTruncate(SlruCtl ctl, int cutoffPage)
*/ */
LWLockAcquire(shared->ControlLock, LW_EXCLUSIVE); LWLockAcquire(shared->ControlLock, LW_EXCLUSIVE);
restart:; restart:
/* /*
* While we are holding the lock, make an important safety check: the * While we are holding the lock, make an important safety check: the

View File

@ -1373,7 +1373,7 @@ ExecDelete(ModifyTableContext *context,
* special-case behavior needed for referential integrity updates in * special-case behavior needed for referential integrity updates in
* transaction-snapshot mode transactions. * transaction-snapshot mode transactions.
*/ */
ldelete:; ldelete:
result = ExecDeleteAct(context, resultRelInfo, tupleid, changingPart); result = ExecDeleteAct(context, resultRelInfo, tupleid, changingPart);
switch (result) switch (result)
@ -1855,7 +1855,7 @@ ExecUpdateAct(ModifyTableContext *context, ResultRelInfo *resultRelInfo,
* then trigger.c will have done table_tuple_lock to lock the correct * then trigger.c will have done table_tuple_lock to lock the correct
* tuple, so there's no need to do them again.) * tuple, so there's no need to do them again.)
*/ */
lreplace:; lreplace:
/* ensure slot is independent, consider e.g. EPQ */ /* ensure slot is independent, consider e.g. EPQ */
ExecMaterializeSlot(slot); ExecMaterializeSlot(slot);
@ -2686,7 +2686,7 @@ ExecMergeMatched(ModifyTableContext *context, ResultRelInfo *resultRelInfo,
econtext->ecxt_innertuple = context->planSlot; econtext->ecxt_innertuple = context->planSlot;
econtext->ecxt_outertuple = NULL; econtext->ecxt_outertuple = NULL;
lmerge_matched:; lmerge_matched:
/* /*
* This routine is only invoked for matched rows, and we must have found * This routine is only invoked for matched rows, and we must have found