From 1233de5f903bf55c76feaf2d248fbb6fe90365ab Mon Sep 17 00:00:00 2001 From: Daniel Anselmi Date: Tue, 25 Jul 2023 23:31:54 +0200 Subject: [PATCH] pld: fix sparser warnings Change-Id: I31c5b19cd93ac41b026f824337488c9aa9b12439 Signed-off-by: Daniel Anselmi Reviewed-on: https://review.openocd.org/c/openocd/+/7828 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/pld/lattice.c | 2 +- src/pld/virtex2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pld/lattice.c b/src/pld/lattice.c index 2075f4490..018cb2693 100644 --- a/src/pld/lattice.c +++ b/src/pld/lattice.c @@ -319,7 +319,7 @@ static int lattice_load_command(struct pld_device *pld_device, const char *filen 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) return ERROR_FAIL; diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index 5a8cf9d96..9b4a0979f 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -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[4], instr_codes.jstart); 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; for (unsigned int i = 0; i < num_user; ++i)