Make fallthroughs explicit in afl-fuzz-extras.c

Using `__attribute__((fallthrough))` makes fallthroughs explicit in a way the compiler can understand. This allows the enablement of `-Wimplicit-fallthrough`.
This commit is contained in:
Richard Barnes
2024-07-01 06:59:37 -07:00
committed by GitHub
parent 53409530b3
commit 37d9afc5cc

View File

@ -455,13 +455,13 @@ void deunicode_extras(afl_state_t *afl) {
case 2: case 2:
if (!afl->extras[i].data[j]) { ++z3; } if (!afl->extras[i].data[j]) { ++z3; }
// fall through __attribute__((fallthrough));
case 0: case 0:
if (!afl->extras[i].data[j]) { ++z1; } if (!afl->extras[i].data[j]) { ++z1; }
break; break;
case 3: case 3:
if (!afl->extras[i].data[j]) { ++z4; } if (!afl->extras[i].data[j]) { ++z4; }
// fall through __attribute__((fallthrough));
case 1: case 1:
if (!afl->extras[i].data[j]) { ++z2; } if (!afl->extras[i].data[j]) { ++z2; }
break; break;