File gnu-efi-fix-switch-warning.patch of Package gnu-efi

From 8d8a3b5dfff1b7ee09673ffb6be764f29ede9d60 Mon Sep 17 00:00:00 2001
From: Nigel Croxon <ncroxon@redhat.com>
Date: Wed, 31 May 2017 06:53:49 -0400
Subject: [PATCH] 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>
---
 lib/print.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/print.c b/lib/print.c
index b8a9d38..ed79c43 100644
--- a/lib/print.c
+++ b/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,
-- 
2.13.0

openSUSE Build Service is sponsored by