Skip to content

Commit

Permalink
DSPInterpreter: Mark IsProperlySignExtended() as [[maybe_unused]]
Browse files Browse the repository at this point in the history
This function is used in debug asserts, so in release builds this will
go unused and otherwise generate a warning
  • Loading branch information
lioncash committed Dec 13, 2023
1 parent 7b57a4a commit ecd7fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/DSP/Interpreter/DSPInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ecd7fa4

Please sign in to comment.