Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37866200
en ru br
ALT Linux repos
S:3.0.5-alt0.1

Group :: Development/Other
RPM: gnu-efi-3.0.5

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch
Download


From f3d3ef07eb69072b8bd2b0c5d4e6243ea38ecec9 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Thu, 2 Feb 2017 13:51:27 -0500
Subject: [PATCH 01/10] Mark our explicit fall through so -Wextra will work in
 gcc 7
gcc 7 introduces detection of fall-through behavior in switch/case
statements, and will warn if -Wimplicit-fallthrough is present and there
is no comment stating that the fall-through is intentional.  This is
also triggered by -Wextra, as it enables -Wimplicit-fallthrough=1.
This patch adds the comment in the one place we use fall-through.
Signed-off-by: Peter Jones <pjones@redhat.com>
---
 lib/print.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lib/print.c b/lib/print.c
index b8a9d38..cb732f0 100644
--- a/lib/print.c
+++ b/lib/print.c
@@ -1131,6 +1131,7 @@ Returns:
             case 'X':
                 Item.Width = Item.Long ? 16 : 8;
                 Item.Pad = '0';
+		/* falls through */
             case 'x':
                 ValueToHex (
                     Item.Scratch,
-- 
2.9.3
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin