mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Avoid memsetting a non-POD struct (fixes compiler warning)
This commit is contained in:
@@ -1784,7 +1784,7 @@ static int sceNetAdhocMatchingCreate(int mode, int maxnum, int port, int rxbufle
|
||||
getLocalMac(&localmac);
|
||||
|
||||
// Clear Memory
|
||||
memset(context, 0, sizeof(SceNetAdhocMatchingContext));
|
||||
context = {};
|
||||
|
||||
// Allocate Receive Buffer
|
||||
context->rxbuf = (uint8_t*)malloc(rxbuflen);
|
||||
|
||||
@@ -38,7 +38,7 @@ bool TestLoongArch64Emitter(){
|
||||
cpu_info.LOONGARCH_LBT_MIPS = true;
|
||||
cpu_info.LOONGARCH_PTW = true;
|
||||
|
||||
u32 code[1024];
|
||||
u32 code[1024]{};
|
||||
LoongArch64Emitter emitter((u8 *)code, (u8 *)code);
|
||||
|
||||
emitter.ADD_W(R12, R13, R14); // t0, t1, t2
|
||||
@@ -77,4 +77,4 @@ bool TestLoongArch64Emitter(){
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user