Fix isonumer build failure on GCC 7.1 8/head
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 12 Jul 2017 14:53:22 +0000 (16:53 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 12 Jul 2017 14:53:22 +0000 (16:53 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src-api/common/isonumber.c

index e14fa2d..eeac2fe 100644 (file)
@@ -221,21 +221,27 @@ isonumber_to_u64(uint64_t *dst, const char *iso, int fraction, bool binary) {
     switch (next[0]) {
       case 'E':
         factor *= multiplicator;
+        __attribute__ ((fallthrough));
         /* no break */
       case 'P':
         factor *= multiplicator;
+        __attribute__ ((fallthrough));
         /* no break */
       case 'T':
         factor *= multiplicator;
+        __attribute__ ((fallthrough));
         /* no break */
       case 'G':
         factor *= multiplicator;
+        __attribute__ ((fallthrough));
         /* no break */
       case 'M':
         factor *= multiplicator;
+        __attribute__ ((fallthrough));
         /* no break */
       case 'k':
         factor *= multiplicator;
+        __attribute__ ((fallthrough));
         /* no break */
       case ' ':
         break;