]> git.sur5r.net Git - openocd/commitdiff
Warning fix
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 31 Aug 2009 12:21:12 +0000 (12:21 +0000)
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 31 Aug 2009 12:21:12 +0000 (12:21 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2658 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm_disassembler.c

index 56474bfcd0405b0240c2169d49973a7f58adddf9..3da2127fac517dc29ee72d09fc27c25cc8c4a113 100644 (file)
@@ -445,6 +445,9 @@ static int evaluate_extend(uint32_t opcode, uint32_t address, char *cp)
        unsigned rn = (opcode >> 16) & 0xf;
        char *type, *rot;
 
+       /* GCC 'uninitialized warning removal' */
+       type = rot = NULL;
+       
        switch ((opcode >> 24) & 0x3) {
        case 0:
                type = "B16";