From ecd7fa4380aff8b98caa8089182ea9e5816e504e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 20:39:01 -0500 Subject: [PATCH] DSPInterpreter: Mark IsProperlySignExtended() as [[maybe_unused]] This function is used in debug asserts, so in release builds this will go unused and otherwise generate a warning --- Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp b/Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp index fab26e4b30..9eb66acc99 100644 --- a/Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp +++ b/Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp @@ -589,7 +589,7 @@ void Interpreter::UpdateSR16(s16 value, bool carry, bool overflow, bool over_s32 } } -static constexpr bool IsProperlySignExtended(u64 val) +[[maybe_unused]] static constexpr bool IsProperlySignExtended(u64 val) { const u64 topbits = val & 0xffff'ff80'0000'0000ULL; return (topbits == 0) || (0xffff'ff80'0000'0000ULL == topbits);