diff options
author | Richard Barnes <rbarnes@umn.edu> | 2024-07-01 06:59:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 06:59:37 -0700 |
commit | 37d9afc5ccf0b37edc6744a5edf7753e52d1e103 (patch) | |
tree | 39849073069ba364d70cfb34bd42311c860671d5 | |
parent | 53409530b369e560c7f6f37ead5a5db9e116efd0 (diff) | |
download | afl++-37d9afc5ccf0b37edc6744a5edf7753e52d1e103.tar.gz |
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`.
-rw-r--r-- | src/afl-fuzz-extras.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-extras.c b/src/afl-fuzz-extras.c index 55b6be04..da996602 100644 --- a/src/afl-fuzz-extras.c +++ b/src/afl-fuzz-extras.c @@ -455,13 +455,13 @@ void deunicode_extras(afl_state_t *afl) { case 2: if (!afl->extras[i].data[j]) { ++z3; } - // fall through + __attribute__((fallthrough)); case 0: if (!afl->extras[i].data[j]) { ++z1; } break; case 3: if (!afl->extras[i].data[j]) { ++z4; } - // fall through + __attribute__((fallthrough)); case 1: if (!afl->extras[i].data[j]) { ++z2; } break; |