diff options
author | John Kacur <jkacur@redhat.com> | 2023-10-06 12:49:31 -0400 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2023-10-06 12:49:31 -0400 |
commit | fd47894cdff00e3da75f8e8bc077858a27b888fe (patch) | |
tree | d2f4d0fe15df54a397df96ef8b6079f48782959e | |
parent | 99bf8d92b3a12d5b8d322cddcdb2dc0f4b22ef18 (diff) | |
download | rt-tests-fd47894cdff00e3da75f8e8bc077858a27b888fe.tar.gz |
rt-tests: rt-utils: Suppress warnings about fallthrough
Suppress warnings about fallthrough in a case statement where this
is intended.
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/lib/rt-utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/rt-utils.c b/src/lib/rt-utils.c index 14dac56..6bbd25a 100644 --- a/src/lib/rt-utils.c +++ b/src/lib/rt-utils.c @@ -382,12 +382,15 @@ int parse_mem_string(char *str, uint64_t *val) case 'g': case 'G': v *= 1024; + __attribute__ ((fallthrough)); case 'm': case 'M': v *= 1024; + __attribute__ ((fallthrough)); case 'k': case 'K': v *= 1024; + __attribute__ ((fallthrough)); case 'b': case 'B': break; |