diff options
Diffstat (limited to 'meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch')
-rw-r--r-- | meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch new file mode 100644 index 000000000..4d0e0392f --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 95ff340a74af16cca89fd5c5ca99890821053209 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 22 Apr 2017 00:47:16 -0700 | ||
4 | Subject: [PATCH] ARM code has unreachable code after switch statement move | ||
5 | initialization | ||
6 | |||
7 | Fixed | ||
8 | sysdeps/linux-gnu/arm/trace.c:173:33: error: statement will never be executed [-Werror=switch-unreachable] | ||
9 | uint32_t operand1, operand2, result = 0; | ||
10 | ^~~~~~ | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | sysdeps/linux-gnu/arm/trace.c | 3 ++- | ||
15 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/sysdeps/linux-gnu/arm/trace.c b/sysdeps/linux-gnu/arm/trace.c | ||
18 | index 5e51e91..f974d1f 100644 | ||
19 | --- a/sysdeps/linux-gnu/arm/trace.c | ||
20 | +++ b/sysdeps/linux-gnu/arm/trace.c | ||
21 | @@ -155,6 +155,8 @@ arm_get_next_pcs(struct process *proc, | ||
22 | const unsigned cond = BITS(this_instr, 28, 31); | ||
23 | const unsigned opcode = BITS(this_instr, 24, 27); | ||
24 | |||
25 | + uint32_t operand1, operand2, result = 0; | ||
26 | + | ||
27 | if (cond == COND_NV) | ||
28 | switch (opcode) { | ||
29 | arch_addr_t addr; | ||
30 | @@ -170,7 +172,6 @@ arm_get_next_pcs(struct process *proc, | ||
31 | } | ||
32 | else | ||
33 | switch (opcode) { | ||
34 | - uint32_t operand1, operand2, result = 0; | ||
35 | case 0x0: | ||
36 | case 0x1: /* data processing */ | ||
37 | case 0x2: | ||
38 | -- | ||
39 | 2.12.2 | ||
40 | |||