flash/nor/atsamv: fixed "maybe uninitialized" compiler warning
This warning about "maybe uninitialized" variable used to pop up on certain versions of GCC. Change-Id: I1cf43b9600885d507afc1dc042322a06751fe146 Signed-off-by: Jan Matyas <matyas@codasip.com> Reviewed-on: http://openocd.zylin.com/6290 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
16eee77c10
commit
69eabf9d61
src/flash/nor
|
@ -661,7 +661,7 @@ COMMAND_HANDLER(samv_handle_gpnvm_command)
|
||||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned v;
|
unsigned v = 0;
|
||||||
if (!strcmp("show", CMD_ARGV[0])) {
|
if (!strcmp("show", CMD_ARGV[0])) {
|
||||||
if (who == -1) {
|
if (who == -1) {
|
||||||
showall:
|
showall:
|
||||||
|
|
Loading…
Reference in New Issue