Browse Source

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>
jim
Jan Matyas 2 years ago
committed by Antonio Borneo
parent
commit
69eabf9d61
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/flash/nor/atsamv.c

+ 1
- 1
src/flash/nor/atsamv.c View File

@@ -661,7 +661,7 @@ COMMAND_HANDLER(samv_handle_gpnvm_command)
return ERROR_COMMAND_SYNTAX_ERROR;
}

unsigned v;
unsigned v = 0;
if (!strcmp("show", CMD_ARGV[0])) {
if (who == -1) {
showall:


Loading…
Cancel
Save