1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibSoftGPU: Mark wrap_clamp as [[maybe_unused]]

This was breaking the fuzzer build becaues the function is not used
if the `CLAMP_DEPRECATED_BEHAVIOR` constexpr is not `true` during
compile time.
This commit is contained in:
Jesse Buhagiar 2021-12-27 23:12:13 +11:00 committed by Idan Horowitz
parent d9af659a12
commit ca093f442c

View file

@ -24,7 +24,7 @@ static constexpr float wrap_repeat(float value)
return fracf(value);
}
static constexpr float wrap_clamp(float value)
[[maybe_unused]] static constexpr float wrap_clamp(float value)
{
return clamp(value, 0.0f, 1.0f);
}