From deabc704d67b859fe173d59db0816ab40a16a4d4 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Thu, 5 Feb 2026 17:10:36 -0800 Subject: [PATCH] Fix `TestColor` build failure on Android ``` ERROR: In file included from tests\test_main.cpp:72: ./tests/core/math/test_color.h:64:27: error: ignoring temporary of type 'Color' declared with 'nodiscard' attribute [-Werror,-Wunused-value] 64 | const Color green_hsva = Color(0, 0, 0).from_hsv(120 / 360.0, 1, 1, 0.25); | ^~~~~~~~~~~~~~ 1 error generated. ``` --- tests/core/math/test_color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/math/test_color.h b/tests/core/math/test_color.h index 1e4e7c548e..297b380ea6 100644 --- a/tests/core/math/test_color.h +++ b/tests/core/math/test_color.h @@ -61,7 +61,7 @@ TEST_CASE("[Color] Constructor methods") { "Creation with invalid HTML notation should result in a Color with the default values."); constexpr Color green_rgba = Color(0, 1, 0, 0.25); - const Color green_hsva = Color(0, 0, 0).from_hsv(120 / 360.0, 1, 1, 0.25); + const Color green_hsva = Color::from_hsv(120 / 360.0, 1, 1, 0.25); CHECK_MESSAGE( green_rgba.is_equal_approx(green_hsva),