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 --- leon2.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'leon2.c') diff --git a/leon2.c b/leon2.c index d2d1b65..a2f7ebf 100644 --- a/leon2.c +++ b/leon2.c @@ -156,8 +156,8 @@ static void gpt_init (void); static void gpt_reset (void); static void gpt_scaler_set (uint32 val); static void timer_ctrl (uint32 val, int i); -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. */ @@ -791,7 +791,7 @@ timer_ctrl (uint32 val, int i) 2 (one word), or 3 (two words); WS should return the number of 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) @@ -916,7 +916,7 @@ memory_write (uint32 addr, uint32 * data, int32 sz, int32 * ws) return 1; } -static unsigned char * +static char * get_mem_ptr (uint32 addr, uint32 size) { if ((addr + size) < ROM_END) @@ -932,7 +932,7 @@ get_mem_ptr (uint32 addr, uint32 size) } static int -sis_memory_write (uint32 addr, const unsigned char *data, uint32 length) +sis_memory_write (uint32 addr, const char *data, uint32 length) { char *mem; @@ -948,7 +948,7 @@ sis_memory_read (uint32 addr, char *data, uint32 length) { char *mem; int ws; - int w4; + unsigned int w4; if (length == 4) { -- cgit v1.2.3