From ca093f442c9c43636e034e433bb101c389b6a2a4 Mon Sep 17 00:00:00 2001 From: Jesse Buhagiar Date: Mon, 27 Dec 2021 23:12:13 +1100 Subject: 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. --- Userland/Libraries/LibSoftGPU/Sampler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries') 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); } -- cgit v1.2.3