From ad36bf14ca7293a253150f13505b174ca9a5d1ea Mon Sep 17 00:00:00 2001 From: Jiri Gaisler Date: Tue, 11 Jun 2019 09:43:17 +0200 Subject: Silence warnings when compiled with LLVM --- erc32.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'erc32.c') diff --git a/erc32.c b/erc32.c index ff95dc6..190941e 100644 --- a/erc32.c +++ b/erc32.c @@ -253,9 +253,8 @@ static uint32 gpt_counter_read (void); static void gpt_scaler_set (uint32 val); static void gpt_reload_set (uint32 val); static void timer_ctrl (uint32 val); -static unsigned char * - get_mem_ptr (uint32 addr, uint32 size); -static void store_bytes (unsigned char *mem, uint32 waddr, +static char *get_mem_ptr (uint32 addr, uint32 size); +static void store_bytes (char *mem, uint32 waddr, uint32 *data, int sz, int32 *ws); /* One-time init */ @@ -1467,7 +1466,7 @@ timer_ctrl(val) wait-states. */ static void -store_bytes (unsigned char *mem, uint32 waddr, uint32 *data, int32 sz, +store_bytes (char *mem, uint32 waddr, uint32 *data, int32 sz, int32 *ws) { switch (sz) { @@ -1624,7 +1623,7 @@ memory_write (uint32 addr, uint32 *data, int32 sz, int32 *ws) return 1; } -static unsigned char * +static char * get_mem_ptr(addr, size) uint32 addr; uint32 size; @@ -1661,7 +1660,7 @@ sis_memory_read(addr, data, length) { char *mem; int ws; - int w4; + unsigned int w4; if (length == 4) { memory_read (addr, &w4, &ws); -- cgit v1.2.3