Fix Werror unreachable after switch 23/221923/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.112123 accepted/tizen/6.0/unified/hotfix/20201102.231349 accepted/tizen/6.5/unified/20211029.014657 accepted/tizen/unified/20200109.065533 submit/tizen/20200108.085202 submit/tizen_6.0/20201029.205503 submit/tizen_6.0_hotfix/20201102.192903 submit/tizen_6.0_hotfix/20201103.115103 submit/tizen_6.5/20211028.163501 tizen_6.0.m2_release tizen_6.5.m2_release
authorSungguk Na <sungguk.na@samsung.com>
Wed, 8 Jan 2020 08:23:52 +0000 (17:23 +0900)
committerSungguk Na <sungguk.na@samsung.com>
Wed, 8 Jan 2020 08:23:52 +0000 (17:23 +0900)
Change-Id: Icc6a3a1fcc0b665f96337783102583def7d85fd5
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
sysdeps/linux-gnu/arm/trace.c

index 5e51e91..857ded0 100644 (file)
@@ -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: