From: Sungguk Na Date: Wed, 8 Jan 2020 08:23:52 +0000 (+0900) Subject: Fix Werror unreachable after switch X-Git-Tag: accepted/tizen/6.0/unified/20201030.112123^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fltrace.git;a=commitdiff_plain;h=935ddb35c01940e14f58575593752a99cbea2d87 Fix Werror unreachable after switch Change-Id: Icc6a3a1fcc0b665f96337783102583def7d85fd5 Signed-off-by: Sungguk Na --- 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: