fix clang error

This commit is contained in:
coco875 2024-12-21 23:49:14 +01:00 committed by Lywx
parent 32e79fa79a
commit 443b7ae602
4 changed files with 7 additions and 7 deletions

View File

@ -1279,7 +1279,7 @@ s32 AudioLoad_RelocateFontAndPreloadSamples(s32 fontId, uintptr_t fontDataAddr,
gNumUsedSamples = 0; gNumUsedSamples = 0;
AudioLoad_RelocateFont(fontId, fontDataAddr, relocData); AudioLoad_RelocateFont(fontId, fontDataAddr, relocData);
return; return 0;
size = 0; size = 0;

View File

@ -65,11 +65,11 @@ void AudioThread_CreateNextAudioBuffer(s16* samples, u32 num_samples) {
osSendMesg8(gAudioResetQueue, gAudioSpecId, OS_MESG_NOBLOCK); osSendMesg8(gAudioResetQueue, gAudioSpecId, OS_MESG_NOBLOCK);
} }
gWaitingAudioTask = NULL; gWaitingAudioTask = NULL;
return NULL; return;
} }
if (gAudioResetTimer > 16) { if (gAudioResetTimer > 16) {
return NULL; return;
} }
if (gAudioResetTimer != 0) { if (gAudioResetTimer != 0) {
gAudioResetTimer++; gAudioResetTimer++;

View File

@ -432,11 +432,11 @@ extern "C" uint8_t GameEngine_OTRSigCheck(const char* data) {
return strncmp(data, sOtrSignature, strlen(sOtrSignature)) == 0; return strncmp(data, sOtrSignature, strlen(sOtrSignature)) == 0;
} }
extern "C" float __cosf(float angle) { extern "C" float __cosf(float angle) throw() {
return cosf(angle); return cosf(angle);
} }
extern "C" float __sinf(float angle) { extern "C" float __sinf(float angle) throw() {
return sinf(angle); return sinf(angle);
} }

View File

@ -21,8 +21,8 @@ OSMesgQueue gSerialEventQueue;
OSMesg sSerialEventBuff[1]; OSMesg sSerialEventBuff[1];
OSMesgQueue gMainThreadMesgQueue; OSMesgQueue gMainThreadMesgQueue;
OSMesg sMainThreadMsgBuff[32]; OSMesg sMainThreadMsgBuff[32];
OSMesgQueue gTaskMesgQueue; OSMesgQueue gTaskMesgQueue = {0};
OSMesg sTaskMsgBuff[16]; OSMesg sTaskMsgBuff[16] = {0};
OSMesgQueue gAudioVImesgQueue; OSMesgQueue gAudioVImesgQueue;
OSMesg sAudioVImsgBuff[1]; OSMesg sAudioVImsgBuff[1];
OSMesgQueue gAudioTaskMesgQueue; OSMesgQueue gAudioTaskMesgQueue;