From 7250fbde2e08774b3758b784b2a9b1ad0b0a3d76 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 23 Jan 2026 14:29:20 +0100 Subject: [PATCH] Fixed warning compiling stb_truetype with MSVC, C++20 with /w15262 (#9189) --- imgui_draw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_draw.cpp b/imgui_draw.cpp index 9889b2884..4d386e56a 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -104,6 +104,7 @@ namespace IMGUI_STB_NAMESPACE #pragma warning (push) #pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration #pragma warning (disable: 6011) // (stb_rectpack) Dereferencing NULL pointer 'cur->next'. +#pragma warning (disable: 5262) // (stb_truetype) implicit fall-through occurs here; are you missing a break statement? #pragma warning (disable: 6385) // (stb_truetype) Reading invalid data from 'buffer': the readable size is '_Old_3`kernel_width' bytes, but '3' bytes may be read. #pragma warning (disable: 28182) // (stb_rectpack) Dereferencing NULL pointer. 'cur' contains the same NULL value as 'cur->next' did. #endif