Cleanup: Unused warning in release builds

This commit is contained in:
Omar Emara
2025-02-21 13:05:47 +02:00
parent 73bd35e63f
commit 367b6d2b55

View File

@@ -384,9 +384,9 @@ void Result::steal_data(Result &source)
/* Returns true if the given GPU texture is compatible with the type and precision of the given
* result. */
static bool is_compatible_texture(const GPUTexture *texture, const Result &result)
[[maybe_unused]] static bool is_compatible_texture(const GPUTexture *texture, const Result &result)
{
/* Float3 types are an except, see the documentation on the get_gpu_texture_format method for
/* Float3 types are an exception, see the documentation on the get_gpu_texture_format method for
* more information. */
if (result.type() == ResultType::Float3) {
if (GPU_texture_format(texture) == Result::gpu_texture_format(GPU_RGB32F, result.precision()))