From efea3f86a77d5439eb9cf2229b8698cd07f6f657 Mon Sep 17 00:00:00 2001 From: Seth Morabito Date: Sun, 9 Jun 2019 14:12:02 -0700 Subject: [PATCH] 3b2: Fix for compilation warning Fixes a compilation warning in 3b2_sysdev.c caused by a lack of an explicit cast from 'void *' to 'struct timer_ctr *' --- 3B2/3b2_sysdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3B2/3b2_sysdev.c b/3B2/3b2_sysdev.c index 58c046a7..eb2d9a7a 100644 --- a/3B2/3b2_sysdev.c +++ b/3B2/3b2_sysdev.c @@ -460,7 +460,7 @@ t_stat timer_reset(DEVICE *dptr) { for (i = 0; i < 3; i++) { timer_unit[i].tmrnum = i; - timer_unit[i].tmr = &TIMERS[i]; + timer_unit[i].tmr = (void *)&TIMERS[i]; } /* Timer 1 gate is always active */ @@ -476,7 +476,7 @@ t_stat timer_reset(DEVICE *dptr) { t_stat timer_set_shutdown(UNIT *uptr, int32 val, CONST char* cptr, void* desc) { - struct timer_ctr *sanity = timer_unit[0].tmr; + struct timer_ctr *sanity = (struct timer_ctr *)timer_unit[0].tmr; sim_debug(EXECUTE_MSG, &timer_dev, "[%08x] Setting sanity timer to 0 for shutdown.\n", R[NUM_PC]);