diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2024-04-16 18:00:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-16 10:00:08 -0600 |
| commit | 9ac20c80b817a5b49af148bd342dd60ce7a28802 (patch) | |
| tree | 24ac1b201af6f5b45da69b3eed4b34145e60ba5f /src/data | |
| parent | d9c1ebb6263cc3a2d494c9ece53edb3c8a2a4b39 (diff) | |
fix a lot of warning in code (#598)
* Fix warnings
* Fix building
Diffstat (limited to 'src/data')
| -rw-r--r-- | src/data/some_data.c | 53 | ||||
| -rw-r--r-- | src/data/some_data.h | 42 |
2 files changed, 51 insertions, 44 deletions
diff --git a/src/data/some_data.c b/src/data/some_data.c index f927fa3df..857973970 100644 --- a/src/data/some_data.c +++ b/src/data/some_data.c @@ -354,7 +354,7 @@ f32 D_800E594C[][2] = { s16 D_800E597C[] = { 0x0000, 0x0000, 0x4000, 0x8000, 0x8000, 0xc000 }; // Seems to be related to the Boos in Banshee Boardwalk -SplineData23 D_800E5988 = { +SplineData D_800E5988 = { 0x0016, { {{ 0x0005, 0x0011, 0x0032 }, 0x0028 }, @@ -384,7 +384,7 @@ SplineData23 D_800E5988 = { }; // Seems to be related to the Boos in Banshee Boardwalk -SplineData24 D_800E5A44 = { +SplineData D_800E5A44 = { 0x0017, { {{ 0x0000, 0x0011, 0xffce }, 0x0028 }, @@ -415,7 +415,7 @@ SplineData24 D_800E5A44 = { }; // Seems to be related to the Boos in Banshee Boardwalk -SplineData25 D_800E5B08 = { +SplineData D_800E5B08 = { 0x0018, { {{ 0xfff1, 0x000a, 0x0000 }, 0x0014 }, @@ -447,7 +447,7 @@ SplineData25 D_800E5B08 = { }; // Seems to be related to the Boos in Banshee Boardwalk -SplineData23 D_800E5BD4 = { +SplineData D_800E5BD4 = { 0x0016, { {{ 0x0005, 0x0011, 0x0032 }, 0x001e }, @@ -477,7 +477,7 @@ SplineData23 D_800E5BD4 = { }; // Seems to be related to the Boos in Banshee Boardwalk -SplineData24 D_800E5C90 = { +SplineData D_800E5C90 = { 0x0017, { {{ 0x0000, 0x0011, 0xffce }, 0x0019 }, @@ -508,7 +508,7 @@ SplineData24 D_800E5C90 = { }; // Only referenced in func_8007D070, which itself is unused -SplineDataUnused4 D_800E5D54 = { +SplineData D_800E5D54 = { 0x0004, { {{ 0x0000, 0x0010, 0x0000 }, 0x0032 }, @@ -519,7 +519,7 @@ SplineDataUnused4 D_800E5D54 = { }; // Unused? -SplineDataUnused4 D_800E5D78 = { +SplineData D_800E5D78 = { 0x0004, { {{ 0x0000, 0x0000, 0x0000 }, 0x000a }, @@ -531,7 +531,11 @@ SplineDataUnused4 D_800E5D78 = { // Note the use of the plain SplineData type here. Since these are pointers, we don't care // about their internal array size -SplineData *D_800E5D9C[] = { &D_800E5988, &D_800E5A44, &D_800E5B08, &D_800E5BD4, &D_800E5C90 }; +SplineData *D_800E5D9C[] = { + &D_800E5988, &D_800E5A44, + &D_800E5B08, &D_800E5BD4, + &D_800E5C90 +}; // Unused SplineData *D_800E5DB0 = &D_800E5988; @@ -633,7 +637,7 @@ s16 D_800E5FD0[] = { }; // Something related to seagulls in Koopa Troopa Beach, not sure of its exact nature -SplineData23 D_800E6034 = { +SplineData D_800E6034 = { 0x0016, { {{ 0x0032, 0x00aa, 0x01f4 }, 0x0028 }, @@ -663,7 +667,7 @@ SplineData23 D_800E6034 = { }; // Something related to seagulls in Koopa Troopa Beach, not sure of its exact nature -SplineData24 D_800E60F0 = { +SplineData D_800E60F0 = { 0x0017, { {{ 0x0000, 0x00aa, 0xfe0c }, 0x0028 }, @@ -694,7 +698,7 @@ SplineData24 D_800E60F0 = { }; // Something related to seagulls in Koopa Troopa Beach, not sure of its exact nature -SplineData25 D_800E61B4 = { +SplineData D_800E61B4 = { 0x0018, { {{ 0xff6a, 0x0064, 0x0000 }, 0x0014 }, @@ -726,7 +730,7 @@ SplineData25 D_800E61B4 = { }; // Something related to seagulls in Koopa Troopa Beach, not sure of its exact nature -SplineData23 D_800E6280 = { +SplineData D_800E6280 = { 0x0016, { {{ 0xffce, 0x00aa, 0xfe0c }, 0x0028 }, @@ -757,7 +761,10 @@ SplineData23 D_800E6280 = { // Note the use of the plain SplineData type here. Since these are pointers, we don't care // about their internal array size -SplineData *D_800E633C[] = { &D_800E6034, &D_800E60F0, &D_800E61B4, &D_800E6280 }; +SplineData *D_800E633C[] = { + &D_800E6034, &D_800E60F0, + &D_800E61B4, &D_800E6280 +}; // Might be Cheep Cheep related? Vec3s D_800E634C[] = { @@ -803,7 +810,7 @@ MoleSpawnUnion gMoleSpawns = { }; // Referenced by D_800E6724, which is unused -SplineData23 D_800E641C = { +SplineData D_800E641C = { 0x0016, { {{ 0x0014, 0x0000, 0x00c8 }, 0x0050 }, @@ -833,7 +840,7 @@ SplineData23 D_800E641C = { }; // Referenced by D_800E6724, which is unused -SplineData24 D_800E64D8 = { +SplineData D_800E64D8 = { 0x0017, { {{ 0x0000, 0x0000, 0xffce }, 0x0050 }, @@ -864,7 +871,7 @@ SplineData24 D_800E64D8 = { }; // Something related to the penguins in Sherbet Land, not sure of its exact nature -SplineData25 D_800E659C = { +SplineData D_800E659C = { 0x0018, { {{ 0xffec, 0x0000, 0x0000 }, 0x0050 }, @@ -896,7 +903,7 @@ SplineData25 D_800E659C = { }; // Something related to the penguins in Sherbet Land, not sure of its exact nature -SplineData23 D_800E6668 = { +SplineData D_800E6668 = { 0x0016, { {{ 0x0005, 0x0000, 0x0032 }, 0x0050 }, @@ -955,7 +962,7 @@ s16 gTorchSpawns[] = { 0xffca, 0xfff8, 0x0270, }; -SplineData15 D_800E67B8 = { +SplineData D_800E67B8 = { 0x000d, { {{ 0x0096, 0x00cc, 0xfe0c }, 0x0014 }, @@ -977,7 +984,7 @@ SplineData15 D_800E67B8 = { }; // Appears to be related to Lakitu waving the checkered flag -SplineData21 D_800E6834 = { +SplineData D_800E6834 = { 0x0014, { {{ 0x0014, 0x0012, 0x001e }, 0x0028 }, @@ -1005,7 +1012,7 @@ SplineData21 D_800E6834 = { }; // Unused struct? -SplineDataUnused13 D_800E68E0 = { +SplineData D_800E68E0 = { 0x000c, { {{ 0x001e, 0x0018, 0x0078 }, 0x000a }, @@ -1025,7 +1032,7 @@ SplineDataUnused13 D_800E68E0 = { }; // Appears to be related to Lakitu Second Lap animation -SplineData12 D_800E694C = { +SplineData D_800E694C = { 0x000b, { {{ 0x0032, 0x0014, 0x0050 }, 0x000a }, @@ -1044,7 +1051,7 @@ SplineData12 D_800E694C = { }; // Appears to be related to Lakitu Reverse animation -SplineData8 D_800E69B0 = { +SplineData D_800E69B0 = { 0x0007, { {{ 0x001e, 0x000e, 0x0032 }, 0x0028 }, @@ -1059,7 +1066,7 @@ SplineData8 D_800E69B0 = { }; // Might be related to Lakitu doing the countdown? -SplineData8 D_800E69F4 = { +SplineData D_800E69F4 = { 0x0007, { {{ 0x0000, 0x0012, 0xfffb }, 0x0014 }, diff --git a/src/data/some_data.h b/src/data/some_data.h index dd961fbe1..3d70b3158 100644 --- a/src/data/some_data.h +++ b/src/data/some_data.h @@ -38,13 +38,13 @@ extern ThwompSpawn gThomwpSpawns150CC[]; extern f32 D_800E594C[][2]; extern u64 D_800E5974; extern s16 D_800E597C[]; -extern SplineData23 D_800E5988; -extern SplineData24 D_800E5A44; -extern SplineData25 D_800E5B08; -extern SplineData23 D_800E5BD4; -extern SplineData24 D_800E5C90; -extern SplineDataUnused4 D_800E5D54; -extern SplineDataUnused4 D_800E5D78; +extern SplineData D_800E5988; +extern SplineData D_800E5A44; +extern SplineData D_800E5B08; +extern SplineData D_800E5BD4; +extern SplineData D_800E5C90; +extern SplineData D_800E5D54; +extern SplineData D_800E5D78; extern SplineData *D_800E5D9C[]; extern SplineData *D_800E5DB0; extern s8 D_800E5DB4[]; @@ -54,28 +54,28 @@ extern Vec3s gHedgehogPatrolPoints[]; extern SnowmanSpawn gSnowmanSpawns[]; extern CrabSpawn gCrabSpawns[]; extern s16 D_800E5FD0[]; -extern SplineData23 D_800E6034; -extern SplineData24 D_800E60F0; -extern SplineData25 D_800E61B4; -extern SplineData23 D_800E6280; +extern SplineData D_800E6034; +extern SplineData D_800E60F0; +extern SplineData D_800E61B4; +extern SplineData D_800E6280; extern SplineData *D_800E633C[]; extern Vec3s D_800E634C[]; extern MoleSpawnUnion gMoleSpawns; -extern SplineData23 D_800E641C; -extern SplineData24 D_800E64D8; -extern SplineData25 D_800E659C; -extern SplineData23 D_800E6668; +extern SplineData D_800E641C; +extern SplineData D_800E64D8; +extern SplineData D_800E659C; +extern SplineData D_800E6668; extern SplineData *D_800E6724[]; extern SplineData *D_800E672C[]; extern Vec3f D_800E6734[]; // This should really be `extern Vec3s gTorchSpawns[];` extern s16 gTorchSpawns[]; -extern SplineData15 D_800E67B8; -extern SplineData21 D_800E6834; -extern SplineDataUnused13 D_800E68E0; -extern SplineData12 D_800E694C; -extern SplineData8 D_800E69B0; -extern SplineData8 D_800E69F4; +extern SplineData D_800E67B8; +extern SplineData D_800E6834; +extern SplineData D_800E68E0; +extern SplineData D_800E694C; +extern SplineData D_800E69B0; +extern SplineData D_800E69F4; extern CloudData gLuigiRacewayClouds[]; extern CloudData gYoshiValleyMooMooFarmClouds[]; extern CloudData gKoopaTroopaBeachClouds[]; |
