-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
-$as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
-if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=5, for CFLAGS" >&5
+$as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=5, for CFLAGS... " >&6; }
+if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_5+:} false; then :
$as_echo_n "(cached) " >&6
else
pgac_save_CFLAGS=$CFLAGS
pgac_save_CC=$CC
CC=${CC}
-CFLAGS="${CFLAGS} -Wimplicit-fallthrough=3"
+CFLAGS="${CFLAGS} -Wimplicit-fallthrough=5"
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
- pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3=yes
+ pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_5=yes
else
- pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3=no
+ pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_5=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_c_werror_flag=$ac_save_c_werror_flag
CFLAGS="$pgac_save_CFLAGS"
CC="$pgac_save_CC"
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
-$as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
-if test x"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x"yes"; then
- CFLAGS="${CFLAGS} -Wimplicit-fallthrough=3"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_5" >&5
+$as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_5" >&6; }
+if test x"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_5" = x"yes"; then
+ CFLAGS="${CFLAGS} -Wimplicit-fallthrough=5"
fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
-$as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
-if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=5, for CXXFLAGS" >&5
+$as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=5, for CXXFLAGS... " >&6; }
+if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_5+:} false; then :
$as_echo_n "(cached) " >&6
else
pgac_save_CXXFLAGS=$CXXFLAGS
pgac_save_CXX=$CXX
CXX=${CXX}
-CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=3"
+CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=5"
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
ac_cxx_werror_flag=yes
ac_ext=cpp
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
- pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3=yes
+ pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_5=yes
else
- pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3=no
+ pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_5=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
CXXFLAGS="$pgac_save_CXXFLAGS"
CXX="$pgac_save_CXX"
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
-$as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
-if test x"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x"yes"; then
- CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=3"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_5" >&5
+$as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_5" >&6; }
+if test x"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_5" = x"yes"; then
+ CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=5"
fi
PGAC_PROG_CXX_CFLAGS_OPT([-Wendif-labels])
PGAC_PROG_CC_CFLAGS_OPT([-Wmissing-format-attribute])
PGAC_PROG_CXX_CFLAGS_OPT([-Wmissing-format-attribute])
- PGAC_PROG_CC_CFLAGS_OPT([-Wimplicit-fallthrough=3])
- PGAC_PROG_CXX_CFLAGS_OPT([-Wimplicit-fallthrough=3])
+ PGAC_PROG_CC_CFLAGS_OPT([-Wimplicit-fallthrough=5])
+ PGAC_PROG_CXX_CFLAGS_OPT([-Wimplicit-fallthrough=5])
PGAC_PROG_CC_CFLAGS_OPT([-Wcast-function-type])
PGAC_PROG_CXX_CFLAGS_OPT([-Wcast-function-type])
PGAC_PROG_CC_CFLAGS_OPT([-Wshadow=compatible-local])
case BTGreaterEqualStrategyNumber:
case BTGreaterStrategyNumber:
*ptr_partialmatch = true;
- /* FALLTHROUGH */
+ pg_fallthrough;
case BTEqualStrategyNumber:
/* If we have a conversion function, apply it */
if (cvt_fns && cvt_fns[rhs_code])
case ERR:
if (SOFT_ERROR_OCCURRED(state->escontext))
return ERR;
- /* fall through */
+ pg_fallthrough;
default:
ereturn(state->escontext, ERR,
(errcode(ERRCODE_SYNTAX_ERROR),
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case LikeStrategyNumber:
/*
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case RegExpStrategyNumber:
trg = createTrgmNFA(val, PG_GET_COLLATION(),
&graph, CurrentMemoryContext);
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case LikeStrategyNumber:
case EqualStrategyNumber:
/* Check if all extracted trigrams are presented. */
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case RegExpStrategyNumber:
if (nkeys < 1)
{
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case LikeStrategyNumber:
case EqualStrategyNumber:
/* Check if all extracted trigrams are presented. */
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case RegExpStrategyNumber:
if (nkeys < 1)
{
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case LikeStrategyNumber:
qtrg = generate_wildcard_trgm(VARDATA(query),
querysize - VARHDRSZ);
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case RegExpStrategyNumber:
qtrg = createTrgmNFA(query, PG_GET_COLLATION(),
&graph, fcinfo->flinfo->fn_mcxt);
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case LikeStrategyNumber:
case EqualStrategyNumber:
/* Wildcard and equal search are inexact */
#ifndef IGNORECASE
elog(ERROR, "cannot handle ~* with case-sensitive trigrams");
#endif
- /* FALL THRU */
+ pg_fallthrough;
case RegExpStrategyNumber:
/* Regexp search is inexact */
*recheck = true;
break;
case PGP_PKT_SYMENCRYPTED_SESSKEY:
got_symenc_key++;
- /* fall through */
+ pg_fallthrough;
case PGP_PKT_SIGNATURE:
case PGP_PKT_MARKER:
case PGP_PKT_TRUST:
'-Werror=unguarded-availability-new',
'-Wendif-labels',
'-Wmissing-format-attribute',
- '-Wimplicit-fallthrough=3',
+ '-Wimplicit-fallthrough=5',
'-Wcast-function-type',
'-Wshadow=compatible-local',
# This was included in -Wall/-Wformat in older GCC versions
break;
case HEAPTUPLE_RECENTLY_DEAD:
*tups_recently_dead += 1;
- /* fall through */
+ pg_fallthrough;
case HEAPTUPLE_LIVE:
/* Live or recently dead, must copy it */
isdead = false;
{
case BTLessStrategyNumber:
cmpexact = 1; /* exclude exact match, if any */
- /* FALL THRU */
+ pg_fallthrough;
case BTLessEqualStrategyNumber:
if (cmpresult >= cmpexact)
matchelem++;
break;
case BTGreaterEqualStrategyNumber:
cmpexact = 1; /* include exact match, if any */
- /* FALL THRU */
+ pg_fallthrough;
case BTGreaterStrategyNumber:
if (cmpresult >= cmpexact)
matchelem++;
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("--%s must be first argument", optarg)));
- /* FALLTHROUGH */
+ pg_fallthrough;
case 'c':
{
char *name,
break;
/* Otherwise, treat this like an internal dependency */
- /* FALL THRU */
+ pg_fallthrough;
case DEPENDENCY_INTERNAL:
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("name list length must be exactly %d", 1)));
/* fall through to check args length */
- /* FALLTHROUGH */
+ pg_fallthrough;
case OBJECT_DOMCONSTRAINT:
case OBJECT_CAST:
case OBJECT_PUBLICATION_REL:
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("name list length must be at least %d", 3)));
/* fall through to check args length */
- /* FALLTHROUGH */
+ pg_fallthrough;
case OBJECT_OPERATOR:
if (list_length(args) != 2)
ereport(ERROR,
sdepForm->objid);
break;
}
- /* FALLTHROUGH */
+ pg_fallthrough;
case SHARED_DEPENDENCY_OWNER:
show_tablesample(((SampleScan *) plan)->tablesample,
planstate, ancestors, es);
/* fall through to print additional fields the same as SeqScan */
- /* FALLTHROUGH */
+ pg_fallthrough;
case T_SeqScan:
case T_ValuesScan:
case T_CteScan:
case RELKIND_TOASTVALUE:
if (recursing)
break;
- /* FALL THRU */
+ pg_fallthrough;
default:
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
trig_tuple_slot2))
elog(ERROR, "failed to fetch tuple2 for AFTER trigger");
}
- /* fall through */
+ pg_fallthrough;
case AFTER_TRIGGER_FDW_REUSE:
/*
case AGG_HASHED:
if (!node->table_filled)
agg_fill_hash_table(node);
- /* FALLTHROUGH */
+ pg_fallthrough;
case AGG_MIXED:
result = agg_retrieve_hash_table(node);
break;
* way, wait for everyone to arrive here so we can proceed.
*/
BarrierArriveAndWait(build_barrier, WAIT_EVENT_HASH_BUILD_ALLOCATE);
- /* Fall through. */
+ pg_fallthrough;
case PHJ_BUILD_HASH_INNER:
/* All other participants just flush their tuples to disk. */
ExecParallelHashCloseBatchAccessors(hashtable);
}
- /* Fall through. */
+ pg_fallthrough;
case PHJ_GROW_BATCHES_REALLOCATE:
/* Wait for the above to be finished. */
BarrierArriveAndWait(&pstate->grow_batches_barrier,
WAIT_EVENT_HASH_GROW_BATCHES_REALLOCATE);
- /* Fall through. */
+ pg_fallthrough;
case PHJ_GROW_BATCHES_REPARTITION:
/* Make sure that we have the current dimensions and buckets. */
/* Wait for the above to be finished. */
BarrierArriveAndWait(&pstate->grow_batches_barrier,
WAIT_EVENT_HASH_GROW_BATCHES_REPARTITION);
- /* Fall through. */
+ pg_fallthrough;
case PHJ_GROW_BATCHES_DECIDE:
dsa_free(hashtable->area, pstate->old_batches);
pstate->old_batches = InvalidDsaPointer;
}
- /* Fall through. */
+ pg_fallthrough;
case PHJ_GROW_BATCHES_FINISH:
/* Wait for the above to complete. */
/* Clear the flag. */
pstate->growth = PHJ_GROWTH_OK;
}
- /* Fall through. */
+ pg_fallthrough;
case PHJ_GROW_BUCKETS_REALLOCATE:
/* Wait for the above to complete. */
BarrierArriveAndWait(&pstate->grow_buckets_barrier,
WAIT_EVENT_HASH_GROW_BUCKETS_REALLOCATE);
- /* Fall through. */
+ pg_fallthrough;
case PHJ_GROW_BUCKETS_REINSERT:
/* Reinsert all tuples into the hash table. */
else
node->hj_JoinState = HJ_NEED_NEW_OUTER;
- /* FALL THRU */
+ pg_fallthrough;
case HJ_NEED_NEW_OUTER:
/* OK, let's scan the bucket for matches */
node->hj_JoinState = HJ_SCAN_BUCKET;
- /* FALL THRU */
+ pg_fallthrough;
case HJ_SCAN_BUCKET:
if (BarrierArriveAndWait(batch_barrier,
WAIT_EVENT_HASH_BATCH_ELECT))
ExecParallelHashTableAlloc(hashtable, batchno);
- /* Fall through. */
+ pg_fallthrough;
case PHJ_BATCH_ALLOCATE:
/* Wait for allocation to complete. */
BarrierArriveAndWait(batch_barrier,
WAIT_EVENT_HASH_BATCH_ALLOCATE);
- /* Fall through. */
+ pg_fallthrough;
case PHJ_BATCH_LOAD:
/* Start (or join in) loading tuples. */
sts_end_parallel_scan(inner_tuples);
BarrierArriveAndWait(batch_barrier,
WAIT_EVENT_HASH_BATCH_LOAD);
- /* Fall through. */
+ pg_fallthrough;
case PHJ_BATCH_PROBE:
*/
recompute_limits(node);
- /* FALL THRU */
+ pg_fallthrough;
case LIMIT_RESCAN:
}
Assert(node->lstate == LIMIT_WINDOWEND_TIES);
- /* FALL THRU */
+ pg_fallthrough;
case LIMIT_WINDOWEND_TIES:
if (ScanDirectionIsForward(direction))
{
case TIDLessEqOperator:
tidopexpr->inclusive = true;
- /* fall through */
+ pg_fallthrough;
case TIDLessOperator:
tidopexpr->exprtype = invert ? TIDEXPR_LOWER_BOUND : TIDEXPR_UPPER_BOUND;
break;
case TIDGreaterEqOperator:
tidopexpr->inclusive = true;
- /* fall through */
+ pg_fallthrough;
case TIDGreaterOperator:
tidopexpr->exprtype = invert ? TIDEXPR_UPPER_BOUND : TIDEXPR_LOWER_BOUND;
break;
ereport(LOG,
(errmsg("error from underlying PAM layer: %s",
msg[i]->msg)));
- /* FALL THROUGH */
+ pg_fallthrough;
case PAM_TEXT_INFO:
/* we don't bother to log TEXT_INFO messages */
if ((reply[i].resp = strdup("")) == NULL)
case PATHKEYS_BETTER2:
/* 'pathkeys' are stronger, use these ones instead */
currpathkeys = pathkeys;
- /* FALLTHROUGH */
+ pg_fallthrough;
case PATHKEYS_BETTER1:
/* 'pathkeys' are less strict */
- /* FALLTHROUGH */
+ pg_fallthrough;
case PATHKEYS_EQUAL:
/* mark this aggregate as covered by 'currpathkeys' */
* the intersection of the sets of nonnullable rels, just as
* for OR. Fall through to share code.
*/
- /* FALL THRU */
+ pg_fallthrough;
case OR_EXPR:
/*
* the intersection of the sets of nonnullable vars, just as
* for OR. Fall through to share code.
*/
- /* FALL THRU */
+ pg_fallthrough;
case OR_EXPR:
/*
rawc->wrapper != JSW_UNSPEC)
rawc->coltype = JTC_FORMATTED;
- /* FALLTHROUGH */
+ pg_fallthrough;
case JTC_FORMATTED:
case JTC_EXISTS:
{
errmsg("primary key constraints are not supported on foreign tables"),
parser_errposition(cxt->pstate,
constraint->location)));
- /* FALL THRU */
+ pg_fallthrough;
case CONSTR_UNIQUE:
if (cxt->isforeign)
case BTGreaterEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ pg_fallthrough;
case BTGreaterStrategyNumber:
off = partition_list_bsearch(partsupfunc,
partcollation,
case BTLessEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ pg_fallthrough;
case BTLessStrategyNumber:
off = partition_list_bsearch(partsupfunc,
partcollation,
case BTGreaterEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ pg_fallthrough;
case BTGreaterStrategyNumber:
/*
case BTLessEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ pg_fallthrough;
case BTLessStrategyNumber:
/*
{
case IS_NOT_TRUE:
*notclause = true;
- /* fall through */
+ pg_fallthrough;
case IS_TRUE:
*outconst = (Expr *) makeBoolConst(true, false);
return PARTCLAUSE_MATCH_CLAUSE;
case IS_NOT_FALSE:
*notclause = true;
- /* fall through */
+ pg_fallthrough;
case IS_FALSE:
*outconst = (Expr *) makeBoolConst(false, false);
return PARTCLAUSE_MATCH_CLAUSE;
case IS_NOT_UNKNOWN:
*notclause = true;
- /* fall through */
+ pg_fallthrough;
case IS_UNKNOWN:
return PARTCLAUSE_MATCH_NULLNESS;
default:
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("--%s must be first argument", optarg)));
- /* FALLTHROUGH */
+ pg_fallthrough;
case 'c':
{
char *name,
case PM_RUN:
if (start_time == BgWorkerStart_RecoveryFinished)
return true;
- /* fall through */
+ pg_fallthrough;
case PM_HOT_STANDBY:
if (start_time == BgWorkerStart_ConsistentState)
return true;
- /* fall through */
+ pg_fallthrough;
case PM_RECOVERY:
case PM_STARTUP:
/* oops, doesn't look like it's a backref after all... */
v->now = save;
/* and fall through into octal number */
- /* FALLTHROUGH */
+ pg_fallthrough;
case CHR('0'):
NOTE(REG_UUNPORT);
v->now--; /* put first digit back */
/* legal in EREs due to specification botch */
NOTE(REG_UPBOTCH);
/* fall through into case PLAIN */
- /* FALLTHROUGH */
+ pg_fallthrough;
case PLAIN:
onechr(v, v->nextvalue, lp, rp);
okcolors(v->nfa, v->cm);
change->action = REORDER_BUFFER_CHANGE_INSERT;
/* intentionally fall through */
+ pg_fallthrough;
case REORDER_BUFFER_CHANGE_INSERT:
case REORDER_BUFFER_CHANGE_UPDATE:
case REORDER_BUFFER_CHANGE_DELETE:
*/
pa_switch_to_partial_serialize(winfo, false);
- /* fall through */
+ pg_fallthrough;
case TRANS_LEADER_PARTIAL_SERIALIZE:
stream_write_change(action, &original_msg);
*/
pa_switch_to_partial_serialize(winfo, true);
- /* fall through */
+ pg_fallthrough;
case TRANS_LEADER_PARTIAL_SERIALIZE:
Assert(winfo);
*/
pa_switch_to_partial_serialize(winfo, !first_segment);
- /* fall through */
+ pg_fallthrough;
case TRANS_LEADER_PARTIAL_SERIALIZE:
Assert(winfo);
*/
pa_switch_to_partial_serialize(winfo, true);
- /* fall through */
+ pg_fallthrough;
case TRANS_LEADER_PARTIAL_SERIALIZE:
stream_write_change(LOGICAL_REP_MSG_STREAM_STOP, s);
stream_stop_internal(stream_xid);
*/
pa_switch_to_partial_serialize(winfo, true);
- /* fall through */
+ pg_fallthrough;
case TRANS_LEADER_PARTIAL_SERIALIZE:
Assert(winfo);
*/
pa_switch_to_partial_serialize(winfo, true);
- /* fall through */
+ pg_fallthrough;
case TRANS_LEADER_PARTIAL_SERIALIZE:
Assert(winfo);
case WALRCV_STOPPING:
/* If we've already been requested to stop, don't start up. */
walrcv->walRcvState = WALRCV_STOPPED;
- /* fall through */
+ pg_fallthrough;
case WALRCV_STOPPED:
SpinLockRelease(&walrcv->mutex);
case WALRCV_WAITING:
case WALRCV_RESTARTING:
walrcv->walRcvState = WALRCV_STOPPING;
- /* fall through */
+ pg_fallthrough;
case WALRCV_STOPPING:
walrcvpid = walrcv->pid;
break;
pgaio_method_ops->wait_one(ioh, ref_generation);
continue;
}
- /* fallthrough */
+ pg_fallthrough;
/* waiting for owner to submit */
case PGAIO_HS_DEFINED:
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("--%s must be first argument", optarg)));
- /* FALLTHROUGH */
+ pg_fallthrough;
case 'c':
{
char *name,
/* for the cumulative statistics system */
pgStatSessionEndCause = DISCONNECT_CLIENT_EOF;
- /* FALLTHROUGH */
+ pg_fallthrough;
case PqMsg_Terminate:
if (stmt->concurrent)
PreventInTransactionBlock(isTopLevel,
"DROP INDEX CONCURRENTLY");
- /* fall through */
+ pg_fallthrough;
case OBJECT_TABLE:
case OBJECT_SEQUENCE:
* handle signed float numbers and signed year-month values.
*/
- /* FALLTHROUGH */
+ pg_fallthrough;
case DTK_DATE:
case DTK_NUMBER:
continue;
}
/* Else fall through to extended alternative format */
- /* FALLTHROUGH */
+ pg_fallthrough;
case '-': /* ISO 8601 4.4.3.3 Alternative Format,
* Extended */
if (havefield)
return 0;
}
/* Else fall through to extended alternative format */
- /* FALLTHROUGH */
+ pg_fallthrough;
case ':': /* ISO 8601 4.4.3.3 Alternative Format,
* Extended */
if (havefield)
case NUM_D:
num->flag |= NUM_F_LDECIMAL;
num->need_locale = true;
- /* FALLTHROUGH */
+ pg_fallthrough;
case NUM_DEC:
if (IS_DECIMAL(num))
ereport(ERROR,
s += strlen(s);
break;
case DCH_RM:
- /* FALLTHROUGH */
+ pg_fallthrough;
case DCH_rm:
/*
case DCH_FF5:
case DCH_FF6:
out->ff = n->key->id - DCH_FF1 + 1;
- /* FALLTHROUGH */
+ pg_fallthrough;
case DCH_US: /* microsecond */
len = from_char_parse_int_len(&out->us, &s,
n->key->id == DCH_US ? 6 :
}
/* otherwise parse it like OF */
}
- /* FALLTHROUGH */
+ pg_fallthrough;
case DCH_OF:
/* OF is equivalent to TZH or TZH:TZM */
/* see TZH comments below */
case JSONTYPE_CAST:
/* cast to JSON, and then process as JSON */
val = OidFunctionCall1(outfuncoid, val);
- /* FALL THROUGH */
+ pg_fallthrough;
case JSONTYPE_JSON:
{
/* parse the json right into the existing result object */
uniqueifyJsonbObject(&ppstate->contVal,
ppstate->unique_keys,
ppstate->skip_nulls);
- /* fall through! */
+ pg_fallthrough;
case WJB_END_ARRAY:
/* Steps here common to WJB_END_OBJECT case */
Assert(!scalarVal);
break;
case jpiFilter:
argNestingLevel++;
- /* FALLTHROUGH */
+ pg_fallthrough;
case jpiIsUnknown:
case jpiNot:
case jpiPlus:
{
case 3:
appendStringInfoCharMacro(buf, 0);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 2:
appendStringInfoCharMacro(buf, 0);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 1:
appendStringInfoCharMacro(buf, 0);
- /* FALLTHROUGH */
+ pg_fallthrough;
default:
break;
}
case jpiKey:
case jpiVariable:
read_int32(v->content.value.datalen, base, pos);
- /* FALLTHROUGH */
+ pg_fallthrough;
case jpiNumeric:
case jpiBool:
v->content.value.data = base + pos;
jspIsMutableWalker(&from, cxt);
}
- /* FALLTHROUGH */
+ pg_fallthrough;
case jpiAnyArray:
if (!cxt->lax)
{
default:
result |= ((int64) var->digits[3]);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 3:
result |= ((int64) var->digits[2]) << 14;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 2:
result |= ((int64) var->digits[1]) << 28;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 1:
result |= ((int64) var->digits[0]) << 42;
break;
term = PRODSUM5(var1digits, 0, var2digits, 4) + carry;
res_digits[5] = (NumericDigit) (term % NBASE);
carry = term / NBASE;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 5:
term = PRODSUM4(var1digits, 0, var2digits, 3) + carry;
res_digits[4] = (NumericDigit) (term % NBASE);
carry = term / NBASE;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 4:
term = PRODSUM3(var1digits, 0, var2digits, 2) + carry;
res_digits[3] = (NumericDigit) (term % NBASE);
carry = term / NBASE;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 3:
term = PRODSUM2(var1digits, 0, var2digits, 1) + carry;
res_digits[2] = (NumericDigit) (term % NBASE);
carry = term / NBASE;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 2:
term = PRODSUM1(var1digits, 0, var2digits, 0) + carry;
res_digits[1] = (NumericDigit) (term % NBASE);
}
/* else do the same stuff as for T_SubLink et al. */
}
- /* FALLTHROUGH */
+ pg_fallthrough;
case T_SubLink:
case T_NullTest:
tm->tm_year = ((tm->tm_year + 999) / 1000) * 1000 - 999;
else
tm->tm_year = -((999 - (tm->tm_year - 1)) / 1000) * 1000 + 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_CENTURY:
/* see comments in timestamptz_trunc */
if (tm->tm_year > 0)
tm->tm_year = ((tm->tm_year + 99) / 100) * 100 - 99;
else
tm->tm_year = -((99 - (tm->tm_year - 1)) / 100) * 100 + 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_DECADE:
/* see comments in timestamptz_trunc */
if (val != DTK_MILLENNIUM && val != DTK_CENTURY)
else
tm->tm_year = -((8 - (tm->tm_year - 1)) / 10) * 10;
}
- /* FALL THRU */
+ pg_fallthrough;
case DTK_YEAR:
tm->tm_mon = 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_QUARTER:
tm->tm_mon = (3 * ((tm->tm_mon - 1) / 3)) + 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_MONTH:
tm->tm_mday = 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_DAY:
tm->tm_hour = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_HOUR:
tm->tm_min = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_MINUTE:
tm->tm_sec = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_SECOND:
fsec = 0;
break;
tm->tm_year = ((tm->tm_year + 999) / 1000) * 1000 - 999;
else
tm->tm_year = -((999 - (tm->tm_year - 1)) / 1000) * 1000 + 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_CENTURY:
/* truncating to the century? as above: -100, 1, 101... */
if (tm->tm_year > 0)
tm->tm_year = ((tm->tm_year + 99) / 100) * 100 - 99;
else
tm->tm_year = -((99 - (tm->tm_year - 1)) / 100) * 100 + 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_DECADE:
/*
else
tm->tm_year = -((8 - (tm->tm_year - 1)) / 10) * 10;
}
- /* FALL THRU */
+ pg_fallthrough;
case DTK_YEAR:
tm->tm_mon = 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_QUARTER:
tm->tm_mon = (3 * ((tm->tm_mon - 1) / 3)) + 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_MONTH:
tm->tm_mday = 1;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_DAY:
tm->tm_hour = 0;
redotz = true; /* for all cases >= DAY */
- /* FALL THRU */
+ pg_fallthrough;
case DTK_HOUR:
tm->tm_min = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_MINUTE:
tm->tm_sec = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_SECOND:
fsec = 0;
break;
case DTK_MILLENNIUM:
/* caution: C division may have negative remainder */
tm->tm_year = (tm->tm_year / 1000) * 1000;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_CENTURY:
/* caution: C division may have negative remainder */
tm->tm_year = (tm->tm_year / 100) * 100;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_DECADE:
/* caution: C division may have negative remainder */
tm->tm_year = (tm->tm_year / 10) * 10;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_YEAR:
tm->tm_mon = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_QUARTER:
tm->tm_mon = 3 * (tm->tm_mon / 3);
- /* FALL THRU */
+ pg_fallthrough;
case DTK_MONTH:
tm->tm_mday = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_DAY:
tm->tm_hour = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_HOUR:
tm->tm_min = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_MINUTE:
tm->tm_sec = 0;
- /* FALL THRU */
+ pg_fallthrough;
case DTK_SECOND:
tm->tm_usec = 0;
break;
if (error->code == XML_ERR_NOT_WELL_BALANCED &&
xmlerrcxt->err_occurred)
return;
- /* fall through */
+ pg_fallthrough;
case XML_FROM_NONE:
case XML_FROM_MEMORY:
case 4:
oneHash = (cc_hashfunc[3]) (v4);
hashValue ^= pg_rotate_left32(oneHash, 24);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 3:
oneHash = (cc_hashfunc[2]) (v3);
hashValue ^= pg_rotate_left32(oneHash, 16);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 2:
oneHash = (cc_hashfunc[1]) (v2);
hashValue ^= pg_rotate_left32(oneHash, 8);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 1:
oneHash = (cc_hashfunc[0]) (v1);
hashValue ^= oneHash;
cc_tupdesc,
&isNull);
Assert(!isNull);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 3:
v3 = fastgetattr(tuple,
cc_keyno[2],
cc_tupdesc,
&isNull);
Assert(!isNull);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 2:
v2 = fastgetattr(tuple,
cc_keyno[1],
cc_tupdesc,
&isNull);
Assert(!isNull);
- /* FALLTHROUGH */
+ pg_fallthrough;
case 1:
v1 = fastgetattr(tuple,
cc_keyno[0],
charptr[3]++;
break;
}
- /* FALL THRU */
+ pg_fallthrough;
case 3:
a = charptr[2];
if (a < 0xBF)
charptr[2]++;
break;
}
- /* FALL THRU */
+ pg_fallthrough;
case 2:
a = charptr[1];
switch (*charptr)
charptr[1]++;
break;
}
- /* FALL THRU */
+ pg_fallthrough;
case 1:
a = *charptr;
if (a == 0x7F || a == 0xDF || a == 0xEF || a == 0xF4)
}
}
/* fall through to process the same as PGC_BACKEND */
- /* FALLTHROUGH */
+ pg_fallthrough;
case PGC_BACKEND:
if (context == PGC_SIGHUP)
{
case VAR_SET_DEFAULT:
if (stmt->is_local)
WarnNoTransactionBlock(isTopLevel, "SET LOCAL");
- /* fall through */
+ pg_fallthrough;
case VAR_RESET:
(void) set_config_option(stmt->name,
NULL,
(errcode_for_file_access(),
errmsg("could not seek in tuplestore temporary file")));
state->status = TSS_READFILE;
- /* FALLTHROUGH */
+ pg_fallthrough;
case TSS_READFILE:
*should_free = true;
commandError(st, PQresultErrorMessage(res));
goto error;
}
- /* fall through */
+ pg_fallthrough;
default:
/* anything else is unexpected */
/* PQTRANS_UNKNOWN is expected given a broken connection */
if (PQstatus(con) == CONNECTION_BAD)
return TSTATUS_CONN_ERROR;
- /* fall through */
+ pg_fallthrough;
case PQTRANS_ACTIVE:
default:
break;
case QUERY_PREPARED:
my_command->prepname = psprintf("P_%d", prepnum++);
- /* fall through */
+ pg_fallthrough;
case QUERY_EXTENDED:
if (!parseQuery(my_command))
exit(1);
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += ka[1];
break;
case 7:
b += ((uint32) k[6] << 8);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ pg_fallthrough;
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ pg_fallthrough;
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ pg_fallthrough;
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += ka[1];
break;
case 7:
b += ((uint32) k[6] << 16);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ pg_fallthrough;
case 5:
b += k[4];
- /* fall through */
+ pg_fallthrough;
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ pg_fallthrough;
case 1:
a += k[0];
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += k[7];
- /* fall through */
+ pg_fallthrough;
case 7:
b += ((uint32) k[6] << 8);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ pg_fallthrough;
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ pg_fallthrough;
case 4:
a += k[3];
- /* fall through */
+ pg_fallthrough;
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ pg_fallthrough;
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += ((uint32) k[7] << 24);
- /* fall through */
+ pg_fallthrough;
case 7:
b += ((uint32) k[6] << 16);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ pg_fallthrough;
case 5:
b += k[4];
- /* fall through */
+ pg_fallthrough;
case 4:
a += ((uint32) k[3] << 24);
- /* fall through */
+ pg_fallthrough;
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ pg_fallthrough;
case 1:
a += k[0];
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += ka[1];
break;
case 7:
b += ((uint32) k[6] << 8);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ pg_fallthrough;
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ pg_fallthrough;
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ pg_fallthrough;
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += ka[1];
break;
case 7:
b += ((uint32) k[6] << 16);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ pg_fallthrough;
case 5:
b += k[4];
- /* fall through */
+ pg_fallthrough;
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ pg_fallthrough;
case 1:
a += k[0];
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += k[7];
- /* fall through */
+ pg_fallthrough;
case 7:
b += ((uint32) k[6] << 8);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ pg_fallthrough;
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ pg_fallthrough;
case 4:
a += k[3];
- /* fall through */
+ pg_fallthrough;
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ pg_fallthrough;
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ pg_fallthrough;
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ pg_fallthrough;
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ pg_fallthrough;
case 8:
/* the lowest byte of c is reserved for the length */
b += ((uint32) k[7] << 24);
- /* fall through */
+ pg_fallthrough;
case 7:
b += ((uint32) k[6] << 16);
- /* fall through */
+ pg_fallthrough;
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ pg_fallthrough;
case 5:
b += k[4];
- /* fall through */
+ pg_fallthrough;
case 4:
a += ((uint32) k[3] << 24);
- /* fall through */
+ pg_fallthrough;
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ pg_fallthrough;
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ pg_fallthrough;
case 1:
a += k[0];
/* case 0: nothing left to add */
a = source[3];
if (a < 0x80 || a > 0xBF)
return false;
- /* FALL THRU */
+ pg_fallthrough;
case 3:
a = source[2];
if (a < 0x80 || a > 0xBF)
return false;
- /* FALL THRU */
+ pg_fallthrough;
case 2:
a = source[1];
switch (*source)
return false;
break;
}
- /* FALL THRU */
+ pg_fallthrough;
case 1:
a = *source;
if (a >= 0x80 && a < 0xC2)
#define pg_attribute_unused()
#endif
+/*
+ * pg_fallthrough indicates that the fall through from the previous case is
+ * intentional.
+ */
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || (defined(__cplusplus) && __cplusplus >= 201703L)
+#define pg_fallthrough [[fallthrough]]
+#elif __has_attribute(fallthrough)
+#define pg_fallthrough __attribute__((fallthrough))
+#else
+#define pg_fallthrough
+#endif
+
/*
* pg_nodiscard means the compiler should warn if the result of a function
* call is ignored. The name "nodiscard" is chosen in alignment with the C23
break;
case 7:
hs->accum |= (uint64) k[6] << 8;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 6:
hs->accum |= (uint64) k[5] << 16;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 5:
hs->accum |= (uint64) k[4] << 24;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 4:
memcpy(&lower_four, k, sizeof(lower_four));
hs->accum |= (uint64) lower_four << 32;
break;
case 3:
hs->accum |= (uint64) k[2] << 40;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 2:
hs->accum |= (uint64) k[1] << 48;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 1:
hs->accum |= (uint64) k[0] << 56;
break;
break;
case 7:
hs->accum |= (uint64) k[6] << 48;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 6:
hs->accum |= (uint64) k[5] << 40;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 5:
hs->accum |= (uint64) k[4] << 32;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 4:
memcpy(&lower_four, k, sizeof(lower_four));
hs->accum |= lower_four;
break;
case 3:
hs->accum |= (uint64) k[2] << 16;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 2:
hs->accum |= (uint64) k[1] << 8;
- /* FALLTHROUGH */
+ pg_fallthrough;
case 1:
hs->accum |= (uint64) k[0];
break;
continue;
}
/* Else fall through to extended alternative format */
- /* FALLTHROUGH */
+ pg_fallthrough;
case '-': /* ISO 8601 4.4.3.3 Alternative Format,
* Extended */
if (havefield)
return 0;
}
/* Else fall through to extended alternative format */
- /* FALLTHROUGH */
+ pg_fallthrough;
case ':': /* ISO 8601 4.4.3.3 Alternative Format,
* Extended */
if (havefield)
tmask = DTK_M(TZ);
break;
}
- /* FALL THROUGH */
+ pg_fallthrough;
case DTK_DATE:
case DTK_NUMBER:
/* Set flag for EPIPE */
REMEMBER_EPIPE(spinfo, true);
- /* FALL THRU */
+ pg_fallthrough;
case ECONNRESET:
conn->write_failed = true;
/* fulfill promise if needed, then handle like regular var */
plpgsql_fulfill_promise(estate, (PLpgSQL_var *) retvar);
- /* FALL THRU */
+ pg_fallthrough;
case PLPGSQL_DTYPE_VAR:
{
/* fulfill promise if needed, then handle like regular var */
plpgsql_fulfill_promise(estate, (PLpgSQL_var *) retvar);
- /* FALL THRU */
+ pg_fallthrough;
case PLPGSQL_DTYPE_VAR:
{
/* fulfill promise if needed, then handle like regular var */
plpgsql_fulfill_promise(estate, (PLpgSQL_var *) datum);
- /* FALL THRU */
+ pg_fallthrough;
case PLPGSQL_DTYPE_VAR:
{
break;
}
/* fall through for utility returning tuples */
- /* FALLTHROUGH */
+ pg_fallthrough;
case SPI_OK_SELECT:
case SPI_OK_INSERT_RETURNING:
/* set zero padding if no nonzero digits yet */
if (accum == 0 && !pointflag)
zpad = '0';
- /* FALL THRU */
+ pg_fallthrough;
case '1':
case '2':
case '3':
{
case 'r': /* chunk range */
run_chunk_ranges = true;
- /* fall through */
+ pg_fallthrough;
case 'c': /* chunk size */
chunk_size = strtou64(optarg, NULL, 10);
if (chunk_size > BUFSIZE)
break;
case 8:
ok = '0' <= xr && xr <= '9';
- /* fallthrough */
+ pg_fallthrough;
case 7:
ok &= ssx == '.';
if (ok && noise)
warning(_("fractional seconds rejected by"
" pre-2018 versions of zic"));
- /* fallthrough */
+ pg_fallthrough;
case 5:
ok &= mmx == ':';
- /* fallthrough */
+ pg_fallthrough;
case 3:
ok &= hhx == ':';
- /* fallthrough */
+ pg_fallthrough;
case 1:
break;
}
}
goto sw_buffer;
}
- /* FALLTHROUGH */
+ pg_fallthrough;
default: /* it is the start of a normal statement */
{
int remove_newlines;
case structure:
if (ps.p_l_follow > 0)
goto copy_id;
- /* FALLTHROUGH */
+ pg_fallthrough;
case decl: /* we have a declaration type (int, etc.) */
parse(decl); /* let parser worry about indentation */
if (ps.last_token == rparen && ps.tos <= 1) {
*/
ps.i_l_follow = ps.il[ps.tos--];
/* the rest is the same as for dolit and forstmt */
- /* FALLTHROUGH */
+ pg_fallthrough;
case dolit: /* 'do' */
case forstmt: /* for (...) */
ps.p_stack[++ps.tos] = tk;
case swstmt:
/* <switch> <stmt> */
case_ind = ps.cstk[ps.tos - 1];
- /* FALLTHROUGH */
+ pg_fallthrough;
case decl: /* finish of a declaration */
case elsehead:
/* <<if> <stmt> else> <stmt> */