diff options
Diffstat (limited to 'meta/recipes-extended/mdadm/files/0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch')
-rw-r--r-- | meta/recipes-extended/mdadm/files/0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch b/meta/recipes-extended/mdadm/files/0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch deleted file mode 100644 index 12bf6a5920..0000000000 --- a/meta/recipes-extended/mdadm/files/0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From 37c35f94d9d95dbd2b5f8a919f5478be51453590 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 13 Oct 2017 10:27:34 -0700 | ||
4 | Subject: [PATCH] Use CC to check for implicit-fallthrough warning support | ||
5 | |||
6 | This warning it new in gcc7 and in cross compile case | ||
7 | its possible that build host gcc is version 7+ but the | ||
8 | cross compile used for compiling mdadm is < version 7 | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | Upstream-Status: Pending | ||
12 | --- | ||
13 | Makefile | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/Makefile b/Makefile | ||
17 | index 46bf57b..a075912 100644 | ||
18 | --- a/Makefile | ||
19 | +++ b/Makefile | ||
20 | @@ -53,7 +53,7 @@ ifdef WARN_UNUSED | ||
21 | CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 | ||
22 | endif | ||
23 | |||
24 | -FALLTHROUGH := $(shell gcc -v --help 2>&1 | grep "implicit-fallthrough" | wc -l) | ||
25 | +FALLTHROUGH := $(shell ${CC} -v --help 2>&1 | grep "implicit-fallthrough" | wc -l) | ||
26 | ifneq "$(FALLTHROUGH)" "0" | ||
27 | CWFLAGS += -Wimplicit-fallthrough=0 | ||
28 | endif | ||