mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-08 12:17:05 -04:00
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
This commit is contained in:
+5
-5
@@ -11,7 +11,7 @@ double sqrt(double d);
|
||||
#pragma intrinsic(sqrt)
|
||||
|
||||
void bootproc(void);
|
||||
void Idle_ClearMemory(const void* begin, const void* end);
|
||||
void Idle_ClearMemory(void* begin, void* end);
|
||||
void Idle_InitFramebuffer(u32* ptr, u32 numBytes, u32 value);
|
||||
void Idle_InitScreen(void);
|
||||
void Idle_InitMemory(void);
|
||||
@@ -110,7 +110,7 @@ void FaultDrawer_SetCharPad(s8 padW, s8 padH);
|
||||
void FaultDrawer_SetCursor(s32 x, s32 y);
|
||||
void FaultDrawer_FillScreen(void);
|
||||
FaultDrawer* FaultDrawer_FormatStringFunc(FaultDrawer* arg, const char* str, s32 count);
|
||||
void FaultDrawer_VPrintf(char* str, char* args);
|
||||
void FaultDrawer_VPrintf(const char* str, char* args);
|
||||
void FaultDrawer_Printf(const char* fmt, ...);
|
||||
void FaultDrawer_DrawText(s32 x, s32 y, const char* fmt, ...);
|
||||
void FaultDrawer_SetDrawerFB(void* fb, u16 w, u16 h);
|
||||
@@ -369,7 +369,7 @@ s32 osContStartQuery(OSMesgQueue* mq);
|
||||
void osContGetQuery(OSContStatus* data);
|
||||
void guLookAtHiliteF(float mf[4][4], LookAt* l, Hilite* h, f32 xEye, f32 yEye, f32 zEye, f32 xAt, f32 yAt, f32 zAt, f32 xUp, f32 yUp, f32 zUp, f32 xl1, f32 yl1, f32 zl1, f32 xl2, f32 yl2, f32 zl2, s32 twidth, s32 theight);
|
||||
void guLookAtHilite(Mtx* m, LookAt* l, Hilite* h, f32 xEye, f32 yEye, f32 zEye, f32 xAt, f32 yAt, f32 zAt, f32 xUp, f32 yUp, f32 zUp, f32 xl1, f32 yl1, f32 zl1, f32 xl2, f32 yl2, f32 zl2, s32 twidth, s32 theight);
|
||||
s32 _Printf(printf_func pfn, void* arg, char* fmt, va_list ap);
|
||||
s32 _Printf(printf_func pfn, void* arg, const char* fmt, va_list ap);
|
||||
void _Putfld(_Pft* px, va_list* pap, u8 code, u8* ac);
|
||||
// void func_8008ED30(void);
|
||||
void osUnmapTLBAll(void);
|
||||
@@ -972,13 +972,13 @@ void func_800C3C00(CollisionContext* bgCtxt, u32 param_2);
|
||||
void func_800C3C14(CollisionContext* bgCtxt, u32 param_2);
|
||||
CollisionHeader* BgCheck_GetActorMeshHeader(CollisionContext* bgCtxt, s32 index);
|
||||
// void func_800C3C94(void);
|
||||
f32 func_800C3D50(s32 arg0, CollisionContext* bgCtxt, s32 arg2, CollisionPoly* arg3, s32* arg4, Vec3f* pos, Actor* actor, s32 arg7, f32 arg8, s32 arg9);
|
||||
f32 func_800C3D50(s32 arg0, CollisionContext* bgCtxt, s32 arg2, CollisionPoly** arg3, s32* arg4, Vec3f* pos, Actor* actor, s32 arg7, f32 arg8, s32 arg9);
|
||||
// void func_800C3F40(void);
|
||||
// void func_800C3FA0(void);
|
||||
// void func_800C4000(void);
|
||||
// void func_800C4058(void);
|
||||
// void func_800C40B4(void);
|
||||
f32 func_800C411C(CollisionContext* bgCtxt, CollisionPoly* arg1, s32* arg2, Actor* actor, Vec3f* pos);
|
||||
f32 func_800C411C(CollisionContext* bgCtxt, CollisionPoly** arg1, s32* arg2, Actor* actor, Vec3f* pos);
|
||||
// void func_800C4188(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6);
|
||||
// void func_800C41E4(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6);
|
||||
// void func_800C4240(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6);
|
||||
|
||||
@@ -34,7 +34,7 @@ typedef struct {
|
||||
Vec3f pos;
|
||||
} ScaleRotPos;
|
||||
|
||||
typedef struct {
|
||||
typedef struct CollisionPoly {
|
||||
/* 0x00 */ u16 type;
|
||||
union {
|
||||
u16 vtxData[3];
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
struct GraphicsContext;
|
||||
struct GlobalContext;
|
||||
struct EffectSs;
|
||||
|
||||
typedef void(*eff_destroy_func)(void* params);
|
||||
|
||||
|
||||
+7
-7
@@ -21,23 +21,23 @@ typedef struct {
|
||||
/* 0x3 */ u8 color[3];
|
||||
} LightDirectional; // size = 0x6
|
||||
|
||||
typedef union {
|
||||
typedef union LightParams {
|
||||
LightPoint point;
|
||||
LightDirectional dir;
|
||||
} LightParams; // size = 0xC
|
||||
|
||||
typedef struct {
|
||||
typedef struct LightInfo {
|
||||
/* 0x0 */ u8 type;
|
||||
/* 0x2 */ LightParams params;
|
||||
} LightInfo; // size = 0xE
|
||||
|
||||
typedef struct {
|
||||
typedef struct Lights {
|
||||
/* 0x00 */ u8 enablePosLights;
|
||||
/* 0x01 */ u8 numLights;
|
||||
/* 0x08 */ Lightsn l;
|
||||
} Lights; // size = 0x80
|
||||
|
||||
typedef struct {
|
||||
typedef struct LightInfoPositional {
|
||||
/* 0x0 */ u8 type;
|
||||
/* 0x2 */ LightPoint params;
|
||||
} LightInfoPositional; // size = 0xE
|
||||
@@ -51,13 +51,13 @@ typedef struct LightNode {
|
||||
// TODO move LightsBuffer to .c file once .bss has been split
|
||||
#define LIGHTS_BUFFER_SIZE 32
|
||||
|
||||
typedef struct {
|
||||
typedef struct LightsBuffer {
|
||||
/* 0x000 */ s32 numOccupied;
|
||||
/* 0x004 */ s32 searchIndex;
|
||||
/* 0x008 */ LightNode lights[LIGHTS_BUFFER_SIZE];
|
||||
} LightsBuffer; // size = 0x188
|
||||
|
||||
typedef struct {
|
||||
typedef struct LightContext {
|
||||
/* 0x0 */ LightNode* listHead;
|
||||
/* 0x4 */ Color_RGB8 ambient;
|
||||
/* 0x7 */ u8 unk7;
|
||||
@@ -67,7 +67,7 @@ typedef struct {
|
||||
/* 0xC */ s16 unkC;
|
||||
} LightContext; // size = 0x10
|
||||
|
||||
typedef enum {
|
||||
typedef enum LightType {
|
||||
/* 0x00 */ LIGHT_POINT_NOGLOW,
|
||||
/* 0x01 */ LIGHT_DIRECTIONAL,
|
||||
/* 0x02 */ LIGHT_POINT_GLOW
|
||||
|
||||
Reference in New Issue
Block a user