mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-06-05 10:29:31 +00:00
Fix compiler warnings.
These were detected by github Actions but not by Xcode.
This commit is contained in:
parent
f2db6bd066
commit
19adb54cd8
|
@ -32,7 +32,7 @@ TimerManager* TimerManager::timer_manager;
|
||||||
uint32_t TimerManager::add_oneshot_timer(uint64_t timeout, timer_cb cb)
|
uint32_t TimerManager::add_oneshot_timer(uint64_t timeout, timer_cb cb)
|
||||||
{
|
{
|
||||||
if (!timeout || timeout <= MIN_TIMEOUT_NS) {
|
if (!timeout || timeout <= MIN_TIMEOUT_NS) {
|
||||||
LOG_F(WARNING, "One-shot timer too short, timeout=%llu ns", timeout);
|
LOG_F(WARNING, "One-shot timer too short, timeout=%llu ns", (long long unsigned)timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
TimerInfo* ti = new TimerInfo;
|
TimerInfo* ti = new TimerInfo;
|
||||||
|
@ -58,7 +58,7 @@ uint32_t TimerManager::add_oneshot_timer(uint64_t timeout, timer_cb cb)
|
||||||
uint32_t TimerManager::add_cyclic_timer(uint64_t interval, timer_cb cb)
|
uint32_t TimerManager::add_cyclic_timer(uint64_t interval, timer_cb cb)
|
||||||
{
|
{
|
||||||
if (!interval || interval <= MIN_TIMEOUT_NS) {
|
if (!interval || interval <= MIN_TIMEOUT_NS) {
|
||||||
LOG_F(WARNING, "Cyclic timer interval too short, timeout=%llu ns", interval);
|
LOG_F(WARNING, "Cyclic timer interval too short, timeout=%llu ns", (long long unsigned)interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
TimerInfo* ti = new TimerInfo;
|
TimerInfo* ti = new TimerInfo;
|
||||||
|
|
|
@ -100,7 +100,7 @@ void ppc_exception_handler(Except_Type exception_type, uint32_t srr1_bits) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ABORT_F("Unknown exception occured: %X\n", exception_type);
|
ABORT_F("Unknown exception occured: %X\n", (unsigned)exception_type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -968,7 +968,7 @@ void mmu_print_regs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_F(INFO, "");
|
LOG_F(INFO, "%s", "");
|
||||||
LOG_F(INFO, "SDR1 = 0x%X", ppc_state.spr[SPR::SDR1]);
|
LOG_F(INFO, "SDR1 = 0x%X", ppc_state.spr[SPR::SDR1]);
|
||||||
LOG_F(INFO, "Segment registers:");
|
LOG_F(INFO, "Segment registers:");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user