diff options
| author | Matteo Croce <teknoraver@meta.com> | 2025-03-27 20:49:10 +0100 |
|---|---|---|
| committer | Matteo Croce <teknoraver@meta.com> | 2025-04-07 15:09:08 +0200 |
| commit | b77025b6e78efbdd4cc36c5e65d3a8d59a805e63 (patch) | |
| tree | f959a170db497beb257ea6aedeed5208edfdce76 /text-utils/hexdump-parse.c | |
| parent | 1a3cbd3c0f7c84f977b624a6240d02ce741fc747 (diff) | |
| download | util-linux-b77025b6e78efbdd4cc36c5e65d3a8d59a805e63.tar.gz | |
Use the 'fallthrough' attribute
C23[1] and CPP17[2] introduced the 'fallthrough' attribute to let the
compiler know that we're intentionally falling through a case statement.
This suppress a warning with new compilers when doing an implicit fallthrough.
[1] https://en.cppreference.com/w/c/language/attributes/fallthrough
[2] https://en.cppreference.com/w/cpp/language/attributes/fallthrough
Diffstat (limited to 'text-utils/hexdump-parse.c')
| -rw-r--r-- | text-utils/hexdump-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/hexdump-parse.c b/text-utils/hexdump-parse.c index 23fffc8692..018013e5eb 100644 --- a/text-utils/hexdump-parse.c +++ b/text-utils/hexdump-parse.c @@ -355,7 +355,7 @@ isint: cs[3] = '\0'; case 'A': endfu = fu; fu->flags |= F_IGNORE; - /* fallthrough */ + FALLTHROUGH; case 'a': pr->flags = F_ADDRESS; ++p2; |
