switch (ret) {
case PCRE_ERROR_NOMEMORY:
MEM(NULL);
+ /*
+ * We can't really fall through, but GCC 7.3 is
+ * too stupid to realise that we can never get
+ * here despite _fr_exit_now being marked as
+ * NEVER_RETURNS.
+ *
+ * If we did anything else, compilers and static
+ * analysis tools would probably complain about
+ * code that could never be executed *sigh*.
+ */
+ /* FALL-THROUGH */
/*
* Not finding a substring is fine
switch (ret) {
case PCRE_ERROR_NOMEMORY:
MEM(NULL);
-
+ /*
+ * We can't really fall through, but GCC 7.3 is
+ * too stupid to realise that we can never get
+ * here despite _fr_exit_now being marked as
+ * NEVER_RETURNS.
+ *
+ * If we did anything else, compilers and static
+ * analysis tools would probably complain about
+ * code that could never be executed *sigh*.
+ */
+ /* FALL-THROUGH */
/*
* Not finding a substring is fine
*/
int64_t result = 1;
if (exp > 63) {
- if (base == 1) {
- return 1;
- }
-
- if (base == -1) {
- return 1 - 2 * (exp & 1);
- }
+ if (base == 1) return 1;
+ if (base == -1) return 1 - 2 * (exp & 1);
return 0; /* overflow */
}
if (exp & 1) result *= base;
exp >>= 1;
base *= base;
+ /* FALL-THROUGH */
case 5:
if (exp & 1) result *= base;
exp >>= 1;
base *= base;
+ /* FALL-THROUGH */
case 4:
if (exp & 1) result *= base;
exp >>= 1;
base *= base;
+ /* FALL-THROUGH */
case 3:
if (exp & 1) result *= base;
exp >>= 1;
base *= base;
+ /* FALL-THROUGH */
case 2:
if (exp & 1) result *= base;
exp >>= 1;
base *= base;
+ /* FALL-THROUGH */
case 1:
if (exp & 1) result *= base;
+ /* FALL-THROUGH */
default:
return result;
}