diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 20:39:01 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 21:02:15 -0500 |
| commit | ecd7fa4380aff8b98caa8089182ea9e5816e504e (patch) | |
| tree | 2211b0360d352959a3721966b05dfa5326684413 /Source/Core | |
| parent | 7b57a4a37d7897fcc47412e32d0e9e280f59fe4c (diff) | |
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
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
