IopBios: Mute deprecated warnings

This would be annoying/slow to rewrite.
This commit is contained in:
Stenzek 2023-10-02 02:06:50 +10:00 committed by Connor McLaughlin
parent 329d8acca7
commit a18c940503
1 changed files with 11 additions and 0 deletions

View File

@ -892,6 +892,13 @@ namespace R3000A
{
int Kprintf_HLE()
{
// Using sprintf here is a bit nasty, but it has a large buffer..
// Don't feel like rewriting it.
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
// Emulate the expected Kprintf functionality:
iopMemWrite32(sp, a0);
iopMemWrite32(sp + 4, a1);
@ -1000,6 +1007,10 @@ namespace R3000A
iopConLog(ShiftJIS_ConvertString(tmp, 1023));
return 1;
#ifdef __clang__
#pragma clang diagnostic pop
#endif
}
} // namespace sysmem