From d87650dffb37dcd2c79cd8789ef3cb87164c7eda Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 21 Dec 2025 18:22:48 +0100 Subject: [PATCH] Text: fixed unused variable warning on builds without asserts. --- imgui_draw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_draw.cpp b/imgui_draw.cpp index 9eb80d091..7e1b8a290 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -5384,6 +5384,7 @@ void ImTextClassifierClear(ImU32* bits, unsigned int codepoint_min, unsigned int void ImTextClassifierSetCharClass(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, unsigned int c) { IM_ASSERT(c >= codepoint_min && c < codepoint_end); + IM_UNUSED(codepoint_end); c -= codepoint_min; const ImU32 shift = (c & 15) << 1; bits[c >> 4] = (bits[c >> 4] & ~(0x03 << shift)) | (char_class << shift);