diff options
author | Jesse Buhagiar <jooster669@gmail.com> | 2021-12-27 23:12:13 +1100 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-27 15:08:19 +0200 |
commit | ca093f442c9c43636e034e433bb101c389b6a2a4 (patch) | |
tree | 49e3ccac722a74f406d8ad7ef2c71121da4a04d2 /Userland/Libraries | |
parent | d9af659a126e7a323b3eae305a1225115a538ee6 (diff) | |
download | serenity-ca093f442c9c43636e034e433bb101c389b6a2a4.zip |
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Sampler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Sampler.cpp b/Userland/Libraries/LibSoftGPU/Sampler.cpp index 7730a3934e..0a86f22391 100644 --- a/Userland/Libraries/LibSoftGPU/Sampler.cpp +++ b/Userland/Libraries/LibSoftGPU/Sampler.cpp @@ -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); } |