diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-04-20 11:20:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-04 11:12:12 +0000 |
commit | 267f2f4c0baeac4a79ef2ea42cc06477d9e6b829 (patch) | |
tree | d4b377b4946a2f6482e6690013c35524265208b3 /meta/recipes-bsp/gnu-efi/gnu-efi | |
parent | fb6863ff8fe35b2f9fe0f2d4dc67fa83ff1b6ca2 (diff) | |
download | poky-267f2f4c0baeac4a79ef2ea42cc06477d9e6b829.tar.gz |
gnu-efi: Fix build with gcc7
(From OE-Core rev: a253743f3e3badadb0afe90a277dd4d252b32c6c)
(From OE-Core rev: 264d276de62e3ea0c9b546d2f0b5d555a926bee7)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Fixup for mporty context
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/gnu-efi/gnu-efi')
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch b/meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch new file mode 100644 index 0000000000..d0aeb2d560 --- /dev/null +++ b/meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 676a8a9001f06808b4dbe0a545d76b5d9a8ebf48 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Jones <pjones@redhat.com> | ||
3 | Date: Thu, 2 Feb 2017 13:51:27 -0500 | ||
4 | Subject: [PATCH] Mark our explicit fall through so -Wextra will work in gcc 7 | ||
5 | |||
6 | gcc 7 introduces detection of fall-through behavior in switch/case | ||
7 | statements, and will warn if -Wimplicit-fallthrough is present and there | ||
8 | is no comment stating that the fall-through is intentional. This is | ||
9 | also triggered by -Wextra, as it enables -Wimplicit-fallthrough=1. | ||
10 | |||
11 | This patch adds the comment in the one place we use fall-through. | ||
12 | |||
13 | Signed-off-by: Peter Jones <pjones@redhat.com> | ||
14 | --- | ||
15 | Upstream-Status: Pending | ||
16 | |||
17 | lib/print.c | 1 + | ||
18 | 1 file changed, 1 insertion(+) | ||
19 | |||
20 | diff --git a/lib/print.c b/lib/print.c | ||
21 | index b8a9d38..cb732f0 100644 | ||
22 | --- a/lib/print.c | ||
23 | +++ b/lib/print.c | ||
24 | @@ -1131,6 +1131,7 @@ Returns: | ||
25 | case 'X': | ||
26 | Item.Width = Item.Long ? 16 : 8; | ||
27 | Item.Pad = '0'; | ||
28 | + /* falls through */ | ||
29 | case 'x': | ||
30 | ValueToHex ( | ||
31 | Item.Scratch, | ||
32 | -- | ||
33 | 2.12.2 | ||
34 | |||