diff options
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-.patch | 38 |
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 @@ | |||
1 | From e4708813cc0d08b75a8db49dcde0722f3d3add5c Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 19:30:22 -0500 | ||
4 | Subject: [PATCH] reloc.c: add comments for implicit fallthrough error in gcc7 | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/reloc.c | 5 +++++ | ||
9 | 1 file changed, 5 insertions(+) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/reloc.c b/gdbc6x/bfd/reloc.c | ||
12 | index 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 | -- | ||
37 | 2.7.4 | ||
38 | |||