From: duane Date: Mon, 31 Aug 2009 12:21:12 +0000 (+0000) Subject: Warning fix X-Git-Tag: v0.3.0-rc0~293 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a41725c788c21acac563e9512b00f4226cb8214b;p=openocd Warning fix git-svn-id: svn://svn.berlios.de/openocd/trunk@2658 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/target/arm_disassembler.c b/src/target/arm_disassembler.c index 56474bfc..3da2127f 100644 --- a/src/target/arm_disassembler.c +++ b/src/target/arm_disassembler.c @@ -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";