mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
Avoid 'may be used uninitialized' warning from FreeBSD base GCC
Change-Id: Ice2472bf7a467652485a5a8c36880c6a47d64c6c Signed-off-by: Ed Maste <emaste@freebsd.org> Reviewed-on: http://openocd.zylin.com/1835 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
@@ -774,7 +774,7 @@ static int lpcspifi_read_flash_id(struct flash_bank *bank, uint32_t *id)
|
||||
uint32_t ssp_base = lpcspifi_info->ssp_base;
|
||||
uint32_t io_base = lpcspifi_info->io_base;
|
||||
uint32_t value;
|
||||
uint8_t id_buf[3];
|
||||
uint8_t id_buf[3] = {0, 0, 0};
|
||||
int retval;
|
||||
|
||||
if (target->state != TARGET_HALTED) {
|
||||
|
||||
Reference in New Issue
Block a user