pld: fix sparser warnings

Change-Id: I31c5b19cd93ac41b026f824337488c9aa9b12439
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7828
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Daniel Anselmi 2023-07-25 23:31:54 +02:00 committed by Antonio Borneo
parent 307a3ca109
commit 1233de5f90
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ static int lattice_load_command(struct pld_device *pld_device, const char *filen
return retval; return retval;
} }
int lattice_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub) static int lattice_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub)
{ {
if (!pld_device) if (!pld_device)
return ERROR_FAIL; return ERROR_FAIL;

View File

@ -347,7 +347,7 @@ COMMAND_HANDLER(virtex2_handle_set_instuction_codes_command)
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[3], instr_codes.jprog_b); COMMAND_PARSE_NUMBER(u64, CMD_ARGV[3], instr_codes.jprog_b);
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[4], instr_codes.jstart); COMMAND_PARSE_NUMBER(u64, CMD_ARGV[4], instr_codes.jstart);
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[5], instr_codes.jshutdown); COMMAND_PARSE_NUMBER(u64, CMD_ARGV[5], instr_codes.jshutdown);
instr_codes.bypass = 0xffffffffffffffff; instr_codes.bypass = 0xffffffffffffffffULL;
unsigned int num_user = CMD_ARGC - 6; unsigned int num_user = CMD_ARGC - 6;
for (unsigned int i = 0; i < num_user; ++i) for (unsigned int i = 0; i < num_user; ++i)