1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 11:55:43 +00:00

SCP: Silence potential compiler warnings on Windows using GCC

This commit is contained in:
Mark Pizzolato
2018-09-27 22:01:40 -07:00
parent 6747c7fdc2
commit f48c282dff
2 changed files with 5 additions and 5 deletions

View File

@@ -443,7 +443,7 @@ MMRESULT mm_status;
mm_status = timeGetDevCaps (&timers, sizeof (timers));
if (mm_status != TIMERR_NOERROR) {
fprintf (stderr, "timeGetDevCaps() returned: 0x%X, Last Error: 0x%X\n", mm_status, GetLastError());
fprintf (stderr, "timeGetDevCaps() returned: 0x%X, Last Error: 0x%X\n", mm_status, (unsigned int)GetLastError());
return 0;
}
if (timers.wPeriodMin == 0) {
@@ -452,7 +452,7 @@ if (timers.wPeriodMin == 0) {
}
mm_status = timeBeginPeriod (timers.wPeriodMin);
if (mm_status != TIMERR_NOERROR) {
fprintf (stderr, "timeBeginPeriod() returned: 0x%X, Last Error: 0x%X\n", mm_status, GetLastError());
fprintf (stderr, "timeBeginPeriod() returned: 0x%X, Last Error: 0x%X\n", mm_status, (unsigned int)GetLastError());
return 0;
}
atexit (sim_timer_exit);