fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=4, for CFLAGS" >&5
+$as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=4, for CFLAGS... " >&6; }
+if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CFLAGS=$CFLAGS
+pgac_save_CC=$CC
+CC=${CC}
+CFLAGS="${CFLAGS} -Wimplicit-fallthrough=4"
+ac_save_c_werror_flag=$ac_c_werror_flag
+ac_c_werror_flag=yes
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4=yes
+else
+ pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4=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_4" >&5
+$as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4" >&6; }
+if test x"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_4" = x"yes"; then
+ CFLAGS="${CFLAGS} -Wimplicit-fallthrough=4"
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=4, for CXXFLAGS" >&5
+$as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=4, for CXXFLAGS... " >&6; }
+if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ pgac_save_CXXFLAGS=$CXXFLAGS
+pgac_save_CXX=$CXX
+CXX=${CXX}
+CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=4"
+ac_save_cxx_werror_flag=$ac_cxx_werror_flag
+ac_cxx_werror_flag=yes
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4=yes
+else
+ pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+CXXFLAGS="$pgac_save_CXXFLAGS"
+CXX="$pgac_save_CXX"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4" >&5
+$as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4" >&6; }
+if test x"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_4" = x"yes"; then
+ CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=4"
+fi
+
+
# This was included in -Wall/-Wformat in older GCC versions
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
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=4])
+ PGAC_PROG_CXX_CFLAGS_OPT([-Wimplicit-fallthrough=4])
# This was included in -Wall/-Wformat in older GCC versions
PGAC_PROG_CC_CFLAGS_OPT([-Wformat-security])
PGAC_PROG_CXX_CFLAGS_OPT([-Wformat-security])
break;
case HEAPTUPLE_RECENTLY_DEAD:
*tups_recently_dead += 1;
- /* fall through */
+ /* FALLTHROUGH */
case HEAPTUPLE_LIVE:
/* Live or recently dead, must copy it */
isdead = false;
break;
/* Otherwise, treat this like an internal dependency */
- /* FALL THRU */
+ /* FALLTHROUGH */
case DEPENDENCY_INTERNAL:
case RELKIND_TOASTVALUE:
if (recursing)
break;
- /* FALL THRU */
+ /* FALLTHROUGH */
default:
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
trig_tuple_slot2))
elog(ERROR, "failed to fetch tuple2 for AFTER trigger");
}
- /* fall through */
+ /* FALLTHROUGH */
case AFTER_TRIGGER_FDW_REUSE:
/*
* way, wait for everyone to arrive here so we can proceed.
*/
BarrierArriveAndWait(build_barrier, WAIT_EVENT_HASH_BUILD_ALLOCATING);
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_BUILD_HASHING_INNER:
/* All other participants just flush their tuples to disk. */
ExecParallelHashCloseBatchAccessors(hashtable);
}
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_GROW_BATCHES_ALLOCATING:
/* Wait for the above to be finished. */
BarrierArriveAndWait(&pstate->grow_batches_barrier,
WAIT_EVENT_HASH_GROW_BATCHES_ALLOCATING);
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_GROW_BATCHES_REPARTITIONING:
/* 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_REPARTITIONING);
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_GROW_BATCHES_DECIDING:
dsa_free(hashtable->area, pstate->old_batches);
pstate->old_batches = InvalidDsaPointer;
}
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_GROW_BATCHES_FINISHING:
/* Wait for the above to complete. */
/* Clear the flag. */
pstate->growth = PHJ_GROWTH_OK;
}
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_GROW_BUCKETS_ALLOCATING:
/* Wait for the above to complete. */
BarrierArriveAndWait(&pstate->grow_buckets_barrier,
WAIT_EVENT_HASH_GROW_BUCKETS_ALLOCATING);
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_GROW_BUCKETS_REINSERTING:
/* Reinsert all tuples into the hash table. */
else
node->hj_JoinState = HJ_NEED_NEW_OUTER;
- /* FALL THRU */
+ /* FALLTHROUGH */
case HJ_NEED_NEW_OUTER:
/* OK, let's scan the bucket for matches */
node->hj_JoinState = HJ_SCAN_BUCKET;
- /* FALL THRU */
+ /* FALLTHROUGH */
case HJ_SCAN_BUCKET:
if (BarrierArriveAndWait(batch_barrier,
WAIT_EVENT_HASH_BATCH_ELECTING))
ExecParallelHashTableAlloc(hashtable, batchno);
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_BATCH_ALLOCATING:
/* Wait for allocation to complete. */
BarrierArriveAndWait(batch_barrier,
WAIT_EVENT_HASH_BATCH_ALLOCATING);
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_BATCH_LOADING:
/* Start (or join in) loading tuples. */
sts_end_parallel_scan(inner_tuples);
BarrierArriveAndWait(batch_barrier,
WAIT_EVENT_HASH_BATCH_LOADING);
- /* Fall through. */
+ /* FALLTHROUGH */
case PHJ_BATCH_PROBING:
*/
recompute_limits(node);
- /* FALL THRU */
+ /* FALLTHROUGH */
case LIMIT_RESCAN:
}
Assert(node->lstate == LIMIT_WINDOWEND_TIES);
- /* FALL THRU */
+ /* FALLTHROUGH */
case LIMIT_WINDOWEND_TIES:
if (ScanDirectionIsForward(direction))
ereport(LOG,
(errmsg("error from underlying PAM layer: %s",
msg[i]->msg)));
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case PAM_TEXT_INFO:
/* we don't bother to log TEXT_INFO messages */
if ((reply[i].resp = strdup("")) == NULL)
* the intersection of the sets of nonnullable rels, just as
* for OR. Fall through to share code.
*/
- /* FALL THRU */
+ /* FALLTHROUGH */
case OR_EXPR:
/*
* the intersection of the sets of nonnullable vars, just as
* for OR. Fall through to share code.
*/
- /* FALL THRU */
+ /* FALLTHROUGH */
case OR_EXPR:
/*
errmsg("primary key constraints are not supported on foreign tables"),
parser_errposition(cxt->pstate,
constraint->location)));
- /* FALL THRU */
+ /* FALLTHROUGH */
case CONSTR_UNIQUE:
if (cxt->isforeign)
case BTGreaterEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ /* FALLTHROUGH */
case BTGreaterStrategyNumber:
off = partition_list_bsearch(partsupfunc,
partcollation,
case BTLessEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ /* FALLTHROUGH */
case BTLessStrategyNumber:
off = partition_list_bsearch(partsupfunc,
partcollation,
case BTGreaterEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ /* FALLTHROUGH */
case BTGreaterStrategyNumber:
/*
case BTLessEqualStrategyNumber:
inclusive = true;
- /* fall through */
+ /* FALLTHROUGH */
case BTLessStrategyNumber:
/*
case PM_RUN:
if (start_time == BgWorkerStart_RecoveryFinished)
return true;
- /* fall through */
+ /* FALLTHROUGH */
case PM_HOT_STANDBY:
if (start_time == BgWorkerStart_ConsistentState)
return true;
- /* fall through */
+ /* FALLTHROUGH */
case PM_RECOVERY:
case PM_STARTUP:
case PM_INIT:
if (start_time == BgWorkerStart_PostmasterStart)
return true;
- /* fall through */
+ /* FALLTHROUGH */
}
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswdigit((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
isdigit((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswdigit_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswalpha((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
isalpha((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswalpha_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswalnum((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
isalnum((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswalnum_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswupper((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
isupper((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswupper_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswlower((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
islower((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswlower_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswgraph((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
isgraph((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswgraph_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswprint((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
isprint((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswprint_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswpunct((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
ispunct((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswpunct_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
case PG_REGEX_LOCALE_WIDE:
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswspace((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
return (c <= (pg_wchar) UCHAR_MAX &&
isspace((unsigned char) c));
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return iswspace_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
return (c <= (pg_wchar) UCHAR_MAX &&
return pg_ascii_toupper((unsigned char) c);
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return towupper((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
/* force C behavior for ASCII characters, per comments above */
if (c <= (pg_wchar) 127)
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return towupper_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
if (c <= (pg_wchar) UCHAR_MAX)
return pg_ascii_tolower((unsigned char) c);
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return towlower((wint_t) c);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE:
/* force C behavior for ASCII characters, per comments above */
if (c <= (pg_wchar) 127)
if (sizeof(wchar_t) >= 4 || c <= (pg_wchar) 0xFFFF)
return towlower_l((wint_t) c, pg_regex_locale->info.lt);
#endif
- /* FALL THRU */
+ /* FALLTHROUGH */
case PG_REGEX_LOCALE_1BYTE_L:
#ifdef HAVE_LOCALE_T
if (c <= (pg_wchar) UCHAR_MAX)
change = specinsert;
change->action = REORDER_BUFFER_CHANGE_INSERT;
- /* intentionally fall through */
+ /* FALLTHROUGH */
case REORDER_BUFFER_CHANGE_INSERT:
case REORDER_BUFFER_CHANGE_UPDATE:
case REORDER_BUFFER_CHANGE_DELETE:
case WALRCV_STOPPING:
/* If we've already been requested to stop, don't start up. */
walrcv->walRcvState = WALRCV_STOPPED;
- /* fall through */
+ /* FALLTHROUGH */
case WALRCV_STOPPED:
SpinLockRelease(&walrcv->mutex);
case WALRCV_WAITING:
case WALRCV_RESTARTING:
walrcv->walRcvState = WALRCV_STOPPING;
- /* fall through */
+ /* FALLTHROUGH */
case WALRCV_STOPPING:
walrcvpid = walrcv->pid;
break;
if (stmt->concurrent)
PreventInTransactionBlock(isTopLevel,
"DROP INDEX CONCURRENTLY");
- /* fall through */
+ /* FALLTHROUGH */
case OBJECT_TABLE:
case OBJECT_SEQUENCE:
case DCH_FF5:
case DCH_FF6:
out->ff = n->key->id - DCH_FF1 + 1;
- /* fall through */
+ /* FALLTHROUGH */
case DCH_US: /* microsecond */
len = from_char_parse_int_len(&out->us, &s,
n->key->id == DCH_US ? 6 :
break;
case WJB_END_OBJECT:
uniqueifyJsonbObject(&(*pstate)->contVal);
- /* fall through! */
+ /* FALLTHROUGH */
case WJB_END_ARRAY:
/* Steps here common to WJB_END_OBJECT case */
Assert(!scalarVal);
tm->tm_year = ((tm->tm_year + 999) / 1000) * 1000 - 999;
else
tm->tm_year = -((999 - (tm->tm_year - 1)) / 1000) * 1000 + 1;
- /* FALL THRU */
+ /* 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 */
+ /* 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 */
+ /* FALLTHROUGH */
case DTK_YEAR:
tm->tm_mon = 1;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_QUARTER:
tm->tm_mon = (3 * ((tm->tm_mon - 1) / 3)) + 1;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_MONTH:
tm->tm_mday = 1;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_DAY:
tm->tm_hour = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_HOUR:
tm->tm_min = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_MINUTE:
tm->tm_sec = 0;
- /* FALL THRU */
+ /* 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 */
+ /* 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 */
+ /* FALLTHROUGH */
case DTK_DECADE:
/*
else
tm->tm_year = -((8 - (tm->tm_year - 1)) / 10) * 10;
}
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_YEAR:
tm->tm_mon = 1;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_QUARTER:
tm->tm_mon = (3 * ((tm->tm_mon - 1) / 3)) + 1;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_MONTH:
tm->tm_mday = 1;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_DAY:
tm->tm_hour = 0;
redotz = true; /* for all cases >= DAY */
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_HOUR:
tm->tm_min = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_MINUTE:
tm->tm_sec = 0;
- /* FALL THRU */
+ /* 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 */
+ /* FALLTHROUGH */
case DTK_CENTURY:
/* caution: C division may have negative remainder */
tm->tm_year = (tm->tm_year / 100) * 100;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_DECADE:
/* caution: C division may have negative remainder */
tm->tm_year = (tm->tm_year / 10) * 10;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_YEAR:
tm->tm_mon = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_QUARTER:
tm->tm_mon = 3 * (tm->tm_mon / 3);
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_MONTH:
tm->tm_mday = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_DAY:
tm->tm_hour = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_HOUR:
tm->tm_min = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_MINUTE:
tm->tm_sec = 0;
- /* FALL THRU */
+ /* FALLTHROUGH */
case DTK_SECOND:
fsec = 0;
break;
/* Pass down in_phrase == true in case there's a NOT below */
in_phrase = true;
- /* FALL THRU */
+ /* FALLTHROUGH */
case OP_AND:
val1 = TS_execute_ternary(gcv, curitem + curitem->qoperator.left,
case HASH_ENTER_NULL:
/* ENTER_NULL does not work with palloc-based allocator */
Assert(hashp->alloc != DynaHashAlloc);
- /* FALL THRU */
+ /* FALLTHROUGH */
case HASH_ENTER:
/* Return existing element if found, else create one */
charptr[3]++;
break;
}
- /* FALL THRU */
+ /* FALLTHROUGH */
case 3:
a = charptr[2];
if (a < 0xBF)
charptr[2]++;
break;
}
- /* FALL THRU */
+ /* FALLTHROUGH */
case 2:
a = charptr[1];
switch (*charptr)
charptr[1]++;
break;
}
- /* FALL THRU */
+ /* FALLTHROUGH */
case 1:
a = *charptr;
if (a == 0x7F || a == 0xDF || a == 0xEF || a == 0xF4)
case VAR_SET_DEFAULT:
if (stmt->is_local)
WarnNoTransactionBlock(isTopLevel, "SET LOCAL");
- /* fall through */
+ /* FALLTHROUGH */
case VAR_RESET:
if (strcmp(stmt->name, "transaction_isolation") == 0)
WarnNoTransactionBlock(isTopLevel, "RESET TRANSACTION");
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ /* 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 */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ /* 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 */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += k[4];
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += k[0];
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 8:
/* the lowest byte of c is reserved for the length */
b += k[7];
- /* fall through */
+ /* FALLTHROUGH */
case 7:
b += ((uint32) k[6] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += k[3];
- /* fall through */
+ /* FALLTHROUGH */
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 8:
/* the lowest byte of c is reserved for the length */
b += ((uint32) k[7] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 7:
b += ((uint32) k[6] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += k[4];
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += ((uint32) k[3] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += k[0];
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ /* 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 */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ /* 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 */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += k[4];
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += ka[0];
break;
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += k[0];
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 8:
/* the lowest byte of c is reserved for the length */
b += k[7];
- /* fall through */
+ /* FALLTHROUGH */
case 7:
b += ((uint32) k[6] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += ((uint32) k[4] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += k[3];
- /* fall through */
+ /* FALLTHROUGH */
case 3:
a += ((uint32) k[2] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += ((uint32) k[0] << 24);
/* case 0: nothing left to add */
{
case 11:
c += ((uint32) k[10] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 10:
c += ((uint32) k[9] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 9:
c += ((uint32) k[8] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 8:
/* the lowest byte of c is reserved for the length */
b += ((uint32) k[7] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 7:
b += ((uint32) k[6] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 6:
b += ((uint32) k[5] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 5:
b += k[4];
- /* fall through */
+ /* FALLTHROUGH */
case 4:
a += ((uint32) k[3] << 24);
- /* fall through */
+ /* FALLTHROUGH */
case 3:
a += ((uint32) k[2] << 16);
- /* fall through */
+ /* FALLTHROUGH */
case 2:
a += ((uint32) k[1] << 8);
- /* fall through */
+ /* FALLTHROUGH */
case 1:
a += k[0];
/* case 0: nothing left to add */
a = source[3];
if (a < 0x80 || a > 0xBF)
return false;
- /* FALL THRU */
+ /* FALLTHROUGH */
case 3:
a = source[2];
if (a < 0x80 || a > 0xBF)
return false;
- /* FALL THRU */
+ /* FALLTHROUGH */
case 2:
a = source[1];
switch (*source)
return false;
break;
}
- /* FALL THRU */
+ /* FALLTHROUGH */
case 1:
a = *source;
if (a >= 0x80 && a < 0xC2)
tmask = DTK_M(TZ);
break;
}
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case DTK_DATE:
case DTK_NUMBER:
REMEMBER_EPIPE(spinfo, true);
#ifdef ECONNRESET
- /* FALL THRU */
+ /* FALLTHROUGH */
case ECONNRESET:
#endif
/* fulfill promise if needed, then handle like regular var */
plpgsql_fulfill_promise(estate, (PLpgSQL_var *) retvar);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PLPGSQL_DTYPE_VAR:
{
/* fulfill promise if needed, then handle like regular var */
plpgsql_fulfill_promise(estate, (PLpgSQL_var *) retvar);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PLPGSQL_DTYPE_VAR:
{
/* fulfill promise if needed, then handle like regular var */
plpgsql_fulfill_promise(estate, (PLpgSQL_var *) datum);
- /* FALL THRU */
+ /* FALLTHROUGH */
case PLPGSQL_DTYPE_VAR:
{
/* set zero padding if no nonzero digits yet */
if (accum == 0 && !pointflag)
zpad = '0';
- /* FALL THRU */
+ /* FALLTHROUGH */
case '1':
case '2':
case '3':
ZIC= ./zic
endif
+# zic.c doesn't compile cleanly with our default
+# -Wimplicit-fallthrough=4, and we don't want to touch the file since
+# it's third-party code, so downgrade to 3 for that file.
+zic.o: CFLAGS := $(subst -Wimplicit-fallthrough=4,-Wimplicit-fallthrough=3,$(CFLAGS))
+
zic: $(ZICOBJS) | submake-libpgport
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)