diff --git a/lib/string.c b/lib/string.c index 0b25421d..3f02a3be 100644 --- a/lib/string.c +++ b/lib/string.c @@ -386,6 +386,9 @@ reswitch: switch (ch = (unsigned char)*fmt++) { goto handle_nosign; case 'X': upper = 1; + #if defined(__GNUC__) && !defined(__clang__) + __attribute__ ((fallthrough)); + #endif case 'x': base = 16; goto handle_nosign;