Clang warns if falling through to a case or default label that is
immediately followed by break, but GCC does
not (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432). (MSVC also
warns about the equivalent code in C++.)
This is in preparation for enabling fallthrough warnings on Clang.
Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/
76a8efcd-925a-4eaf-bdd1-
d972cd1a32ff%40eisentraut.org
case UPC:
buf[2] = '0';
valid = (valid && ((rcheck = checkdig(buf + 2, 13)) == check || magic));
+ break;
default:
break;
}
overexplain_bitmapset("RTIs",
((Result *) plan)->relids,
es);
+ break;
default:
break;
}
recoveryPausesHere(true);
/* drop into promote */
+ pg_fallthrough;
case RECOVERY_TARGET_ACTION_PROMOTE:
break;
xlrec = (xl_heap_new_cid *) XLogRecGetData(buf->record);
SnapBuildProcessNewCid(builder, xid, buf->origptr, xlrec);
-
- break;
}
+ break;
case XLOG_HEAP2_REWRITE:
/*
len = BuildQueryCompletionString(completionTag, qc,
force_undecorated_output);
pq_putmessage(PqMsg_CommandComplete, completionTag, len + 1);
+ break;
case DestNone:
case DestDebug:
if (b1c4[i][1] == cns)
return b1c4[i][0];
}
+ break;
default:
break;
}
case PLPGSQL_DTYPE_VAR:
case PLPGSQL_DTYPE_REC:
(*varnos)[n++] = plpgsql_Datums[i]->dno;
+ break;
default:
break;
* done earlier.
*/
force_nl = false;
+ break;
case form_feed:
break;
case comment: