diff options
author | Sungguk Na <sungguk.na@samsung.com> | 2020-01-08 17:23:52 +0900 |
---|---|---|
committer | Sungguk Na <sungguk.na@samsung.com> | 2020-01-08 17:23:52 +0900 |
commit | 935ddb35c01940e14f58575593752a99cbea2d87 (patch) | |
tree | 01fc5831dfe7d3a8ad082378d18296f0544bd01c | |
parent | efaa37d09d49156a8bda9aa579151157cf51efe5 (diff) | |
download | ltrace-accepted/tizen/6.0/unified/20201030.112123.tar.gz ltrace-accepted/tizen/6.0/unified/20201030.112123.tar.bz2 ltrace-accepted/tizen/6.0/unified/20201030.112123.zip |
Fix Werror unreachable after switchtizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_6.5/20211028.163501submit/tizen_6.0_hotfix/20201103.115103submit/tizen_6.0_hotfix/20201102.192903submit/tizen_6.0/20201029.205503submit/tizen/20200108.085202accepted/tizen/unified/20200109.065533accepted/tizen/6.5/unified/20211029.014657accepted/tizen/6.0/unified/hotfix/20201102.231349accepted/tizen/6.0/unified/20201030.112123tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
Change-Id: Icc6a3a1fcc0b665f96337783102583def7d85fd5
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
-rw-r--r-- | sysdeps/linux-gnu/arm/trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/linux-gnu/arm/trace.c b/sysdeps/linux-gnu/arm/trace.c index 5e51e91..857ded0 100644 --- a/sysdeps/linux-gnu/arm/trace.c +++ b/sysdeps/linux-gnu/arm/trace.c @@ -155,6 +155,8 @@ arm_get_next_pcs(struct process *proc, const unsigned cond = BITS(this_instr, 28, 31); const unsigned opcode = BITS(this_instr, 24, 27); + uint32_t operand1, operand2, result = 0; + if (cond == COND_NV) switch (opcode) { arch_addr_t addr; @@ -170,7 +172,6 @@ arm_get_next_pcs(struct process *proc, } else switch (opcode) { - uint32_t operand1, operand2, result = 0; case 0x0: case 0x1: /* data processing */ case 0x2: |