From: Øyvind Harboe Date: Tue, 1 Nov 2011 21:10:54 +0000 (+0100) Subject: fix warning: remove assigned to variable X-Git-Tag: v0.6.0-rc1~476 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=955316a727c927d8c9fe46ec4cfa711545853b4f;p=openocd fix warning: remove assigned to variable variable is subsequently not used Change-Id: I177d21c6ba9f1f2e3765feffdbf317ea375a8cfe Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/149 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c index 69321ac3..65d93ad4 100644 --- a/src/flash/nor/pic32mx.c +++ b/src/flash/nor/pic32mx.c @@ -724,7 +724,7 @@ static int pic32mx_info(struct flash_bank *bank, char *buf, int buf_size) buf += printed; buf_size -= printed; - printed = snprintf(buf, buf_size, " Ver: 0x%02x", + snprintf(buf, buf_size, " Ver: 0x%02x", (unsigned)((device_id >> 28) & 0xf)); return ERROR_OK;