summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch')
-rw-r--r--recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch b/recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch
new file mode 100644
index 00000000..a21d4212
--- /dev/null
+++ b/recipes-devtools/gdbc6x/gdbc6x/0001-reloc.c-add-comments-for-implicit-fallthrough-error-.patch
@@ -0,0 +1,38 @@
1From e4708813cc0d08b75a8db49dcde0722f3d3add5c Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com>
3Date: Fri, 10 Nov 2017 19:30:22 -0500
4Subject: [PATCH] reloc.c: add comments for implicit fallthrough error in gcc7
5
6Signed-off-by: Denys Dmytriyenko <denys@ti.com>
7---
8 gdbc6x/bfd/reloc.c | 5 +++++
9 1 file changed, 5 insertions(+)
10
11diff --git a/gdbc6x/bfd/reloc.c b/gdbc6x/bfd/reloc.c
12index 0d191f1..a6e0e12 100644
13--- a/gdbc6x/bfd/reloc.c
14+++ b/gdbc6x/bfd/reloc.c
15@@ -7254,15 +7254,20 @@ bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code)
16 {
17 case 64:
18 BFD_FAIL ();
19+ /* FALLTHRU */
20 case 32:
21 return &bfd_howto_32;
22 case 16:
23 BFD_FAIL ();
24+ /* FALLTHRU */
25 default:
26 BFD_FAIL ();
27+ /* FALLTHRU */
28 }
29+ /* FALLTHRU */
30 default:
31 BFD_FAIL ();
32+ /* FALLTHRU */
33 }
34 return NULL;
35 }
36--
372.7.4
38