Forráskód Böngészése

Add the fallthrough attribute to notify gcc7 that it's on purpose.

Signed-off-by: Gary Lin <glin@suse.com>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Nigel Croxon 7 éve
szülő
commit
8d8a3b5dff
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      lib/print.c

+ 3 - 0
lib/print.c

@@ -1131,6 +1131,9 @@ Returns:
             case 'X':
                 Item.Width = Item.Long ? 16 : 8;
                 Item.Pad = '0';
+#if __GNUC__ >= 7
+		__attribute__ ((fallthrough));
+#endif
             case 'x':
                 ValueToHex (
                     Item.Scratch,