diff options
author | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-31 12:21:12 +0000 |
---|---|---|
committer | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-31 12:21:12 +0000 |
commit | a41725c788c21acac563e9512b00f4226cb8214b (patch) | |
tree | 4e089be30174d4bc5ef7c71724e03048d521e79a /src/target | |
parent | bb5f713e44c4025673565008a7aa5211e9d0c94e (diff) | |
download | riscv-openocd-a41725c788c21acac563e9512b00f4226cb8214b.zip riscv-openocd-a41725c788c21acac563e9512b00f4226cb8214b.tar.gz riscv-openocd-a41725c788c21acac563e9512b00f4226cb8214b.tar.bz2 |
Warning fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@2658 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm_disassembler.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/arm_disassembler.c b/src/target/arm_disassembler.c index 56474bf..3da2127 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"; |