This is an automated email from Gerrit.

"Daniel Anselmi <danse...@gmx.ch>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/7828

-- gerrit

commit 4f6dbda02a9a1f430d07005bb90513f2719771ea
Author: Daniel Anselmi <danse...@gmx.ch>
Date:   Tue Jul 25 23:31:54 2023 +0200

    pld: fix sparser warnings
    
    Change-Id: I31c5b19cd93ac41b026f824337488c9aa9b12439
    Signed-off-by: Daniel Anselmi <danse...@gmx.ch>

diff --git a/src/pld/lattice.c b/src/pld/lattice.c
index 2075f4490d..018cb2693e 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 5a8cf9d96e..9b4a0979f3 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)

-- 

Reply via email to