From: Spencer Oliver Date: Mon, 10 Jan 2011 09:37:18 +0000 (+0000) Subject: cfi: fix release build warnings X-Git-Tag: v0.5.0-rc1~218 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8684bd1342e2a2e79118397df5e35a6b85e0b8d0;p=openocd cfi: fix release build warnings Signed-off-by: Spencer Oliver --- 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) {