[PATCH 13/17] rt-tests: rt-utils: Suppress warnings about fallthrough

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Suppress warnings about fallthrough in a case statement where this
is intended.

Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
---
 src/lib/rt-utils.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/rt-utils.c b/src/lib/rt-utils.c
index 14dac5608037..6bbd25a8ba53 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;
-- 
2.40.1





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux