4th round of standard compiler fixes (#2984)

* 4th round of standard compiler fixes

* use of fpcM_ERROR_PROCESS_ID_e in gWolfBustersID
This commit is contained in:
kipcode66
2025-12-22 05:20:08 -05:00
committed by GitHub
parent 9ac6dd0044
commit bda8dc6af8
65 changed files with 170 additions and 162 deletions
+1
View File
@@ -2,6 +2,7 @@
#define JORENTRY_H
#include "JSystem/JHostIO/JHIComm.h"
#include "dolphin/os.h"
template<typename T, int I>
class JHIpvector {
+1 -1
View File
@@ -179,7 +179,7 @@ public:
public:
void initialize() {
memset(&mFootLPos, 0, (int)&field_0xe3c - (int)&mFootLPos);
memset(&mFootLPos, 0, (intptr_t)&field_0xe3c - (intptr_t)&mFootLPos);
mFaceMotionSeqMngr.initialize();
mMotionSeqMngr.initialize();
+10 -10
View File
@@ -320,9 +320,9 @@ extern BOOL __OSInReboot;
#define ASSERT(cond) ASSERTLINE(__LINE__, cond)
static inline u8 __OSf32tou8(register f32 in) {
static inline u8 __OSf32tou8(__REGISTER f32 in) {
f32 a;
register f32* ptr = &a;
__REGISTER f32* ptr = &a;
u8 r;
#if defined(__MWERKS__)
@@ -336,9 +336,9 @@ static inline u8 __OSf32tou8(register f32 in) {
return r;
}
static inline u16 __OSf32tou16(register f32 in) {
static inline u16 __OSf32tou16(__REGISTER f32 in) {
f32 a;
register f32* ptr = &a;
__REGISTER f32* ptr = &a;
u16 r;
#if defined(__MWERKS__)
@@ -352,9 +352,9 @@ static inline u16 __OSf32tou16(register f32 in) {
return r;
}
static inline s16 __OSf32tos16(register f32 in) {
static inline s16 __OSf32tos16(__REGISTER f32 in) {
f32 a;
register f32* ptr = &a;
__REGISTER f32* ptr = &a;
s16 r;
#if defined(__MWERKS__)
@@ -368,8 +368,8 @@ static inline s16 __OSf32tos16(register f32 in) {
return r;
}
static inline f32 __OSu16tof32(register u16 const* arg) {
register f32 ret;
static inline f32 __OSu16tof32(__REGISTER u16 const* arg) {
__REGISTER f32 ret;
#if defined(__MWERKS__)
asm { psq_l ret, 0(arg), 1, 3 };
@@ -381,8 +381,8 @@ static inline f32 __OSu16tof32(register u16 const* arg) {
return ret;
}
static inline f32 __OSs16tof32(register s16 const* arg) {
register f32 ret;
static inline f32 __OSs16tof32(__REGISTER s16 const* arg) {
__REGISTER f32 ret;
#if defined(__MWERKS__)
asm { psq_l ret, 0(arg), 1, 5 };