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;
AudioLoad_RelocateFont(fontId, fontDataAddr, relocData);
return;
return 0;
size = 0;

View File

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

View File

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

View File

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