Explorar o código

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
8d8a3b5dff
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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,