sim: common: fix -Wimplicit-fallthrough warnings

Replace some fall through comments with the attribute.
This commit is contained in:
Mike Frysinger
2023-12-21 01:29:53 -05:00
parent 29f1ffea25
commit 9362022e95
3 changed files with 7 additions and 5 deletions

View File

@@ -300,10 +300,10 @@ parse_size (char *chp,
break;
case 'g': case 'G': /* Gigabyte suffix. */
*nr_bytes <<= 10;
/* Fall through. */
ATTRIBUTE_FALLTHROUGH;
case 'm': case 'M': /* Megabyte suffix. */
*nr_bytes <<= 10;
/* Fall through. */
ATTRIBUTE_FALLTHROUGH;
case 'k': case 'K': /* Kilobyte suffix. */
*nr_bytes <<= 10;
/* Check for a modulo specifier after the suffix. */