summaryrefslogtreecommitdiff
path: root/src/flash/nor
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2011-01-10 09:37:18 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2011-01-10 09:37:18 +0000
commit8684bd1342e2a2e79118397df5e35a6b85e0b8d0 (patch)
tree33926f6ae16cf9234f0161823efe30c956e309d2 /src/flash/nor
parent0535531d2753f1b86454bb6ffad6ffbdd56c66d0 (diff)
downloadopenocd+libswd-8684bd1342e2a2e79118397df5e35a6b85e0b8d0.tar.gz
openocd+libswd-8684bd1342e2a2e79118397df5e35a6b85e0b8d0.tar.bz2
openocd+libswd-8684bd1342e2a2e79118397df5e35a6b85e0b8d0.tar.xz
openocd+libswd-8684bd1342e2a2e79118397df5e35a6b85e0b8d0.zip
cfi: fix release build warnings
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/flash/nor')
-rw-r--r--src/flash/nor/cfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c
index 4fc800d4..f462d721 100644
--- a/src/flash/nor/cfi.c
+++ b/src/flash/nor/cfi.c
@@ -1663,8 +1663,8 @@ static int cfi_spansion_write_block(struct flash_bank *bank, uint8_t *buffer,
return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
}
- int target_code_size;
- const uint32_t *target_code_src;
+ int target_code_size = 0;
+ const uint32_t *target_code_src = NULL;
switch (bank->bus_width)
{