diff options
| author | Zach Banks <zjbanks@gmail.com> | 2021-05-18 22:28:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-18 22:28:04 -0400 |
| commit | dea3c8fd792d29648697f697f34d3658bf3838cf (patch) | |
| tree | 44343b1d23b9eb7f9fc1598da7a7f804528db204 /src/boot_O2_g3 | |
| parent | 7f1465991925a27539a1bd5361331b794772efb2 (diff) | |
Fix all warnings raised by IDO (#152)
* Fix all warnings raised by IDO, ignore trailing commas
* Set -woff=624,...; keep const in printf functions
* Remove redefined macros in irqmgr.c
* Remove DECR macro & reformat
* Address PR comments from AngheloAlf
Diffstat (limited to 'src/boot_O2_g3')
| -rw-r--r-- | src/boot_O2_g3/idle.c | 2 | ||||
| -rw-r--r-- | src/boot_O2_g3/irqmgr.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/boot_O2_g3/idle.c b/src/boot_O2_g3/idle.c index 051f7b336..53a3c49ef 100644 --- a/src/boot_O2_g3/idle.c +++ b/src/boot_O2_g3/idle.c @@ -8,7 +8,7 @@ u32 gViConfigFeatures = 0x42; f32 gViConfigXScale = 1.0f; f32 gViConfigYScale = 1.0f; -void Idle_ClearMemory(const void* begin, const void* end) { +void Idle_ClearMemory(void* begin, void* end) { if (begin < end) { bzero(begin, (s32)(int)end - (int)begin); } diff --git a/src/boot_O2_g3/irqmgr.c b/src/boot_O2_g3/irqmgr.c index 766533fb3..3d592e210 100644 --- a/src/boot_O2_g3/irqmgr.c +++ b/src/boot_O2_g3/irqmgr.c @@ -1,11 +1,6 @@ #include <ultra64.h> #include <global.h> -// TODO move out -#define OS_CLOCK_RATE 62500000LL -#define OS_CPU_COUNTER (OS_CLOCK_RATE * 3 / 4) -#define OS_USEC_TO_CYCLES(n) (((u64)(n) * (OS_CPU_COUNTER / 15625LL)) / (1000000LL / 15625LL)) - vs32 gIrqMgrResetStatus = 0; volatile OSTime sIrqMgrResetTime = 0; volatile OSTime sIrqMgrRetraceTime = 0; |
