mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 15:01:18 +12:00
Fix various compiler warnings given by Clang (#170)
This commit is contained in:
parent
4d1be950e3
commit
4eaa600b57
8 changed files with 26 additions and 28 deletions
|
@ -1,5 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
|
||||
#include "util/helpers/fspinlock.h"
|
||||
|
||||
|
|
|
@ -470,7 +470,7 @@ namespace coreinit
|
|||
// mark current block as free
|
||||
block->isFree = _swapEndianU32(1);
|
||||
// attempt to merge with previous block
|
||||
if (_swapEndianU32(block->previousBlock) != NULL)
|
||||
if (_swapEndianU32(block->previousBlock) != MPTR_NULL)
|
||||
{
|
||||
MPTR previousBlockMPTR = _swapEndianU32(block->previousBlock);
|
||||
MEMBlockHeapTrackDEPR* previousBlock = (MEMBlockHeapTrackDEPR*)memory_getPointerFromVirtualOffset(previousBlockMPTR);
|
||||
|
@ -494,7 +494,7 @@ namespace coreinit
|
|||
}
|
||||
}
|
||||
// attempt to merge with next block
|
||||
if (_swapEndianU32(block->nextBlock) != NULL)
|
||||
if (_swapEndianU32(block->nextBlock) != MPTR_NULL)
|
||||
{
|
||||
MPTR nextBlockMPTR = _swapEndianU32(block->nextBlock);
|
||||
MEMBlockHeapTrackDEPR* nextBlock = (MEMBlockHeapTrackDEPR*)memory_getPointerFromVirtualOffset(nextBlockMPTR);
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace coreinit
|
|||
{
|
||||
debug_printf("coreinitVirtualMemory_alloc(): Unable to allocate memory\n");
|
||||
debugBreakpoint();
|
||||
return NULL;
|
||||
return MPTR_NULL;
|
||||
}
|
||||
// check for overlapping regions
|
||||
OSVirtMemory* virtMemItr = virtualMemoryList;
|
||||
|
@ -66,7 +66,7 @@ namespace coreinit
|
|||
return currentAddress;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
return MPTR_NULL;
|
||||
}
|
||||
|
||||
void coreinitExport_OSGetAvailPhysAddrRange(PPCInterpreter_t* hCPU)
|
||||
|
|
|
@ -99,7 +99,7 @@ namespace snd_core
|
|||
}
|
||||
coreinit::OSInitMutexEx(__AXAppFrameCallbackMutex.GetPtr(), NULL);
|
||||
for (sint32 i = 0; i < AX_DEV_COUNT; i++)
|
||||
__AXDeviceFinalMixCallback[i] = NULL;
|
||||
__AXDeviceFinalMixCallback[i] = MPTR_NULL;
|
||||
}
|
||||
|
||||
sint32 AXRegisterAppFrameCallback(MPTR funcAddr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue