From a18c940503cbf21921f7929e10f39c4f49055a0e Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 2 Oct 2023 02:06:50 +1000 Subject: [PATCH] IopBios: Mute deprecated warnings This would be annoying/slow to rewrite. --- pcsx2/IopBios.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pcsx2/IopBios.cpp b/pcsx2/IopBios.cpp index 750222b06b..ed84927519 100644 --- a/pcsx2/IopBios.cpp +++ b/pcsx2/IopBios.cpp @@ -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