From ade064d310ff2871fd50f1a1a157803329efa423 Mon Sep 17 00:00:00 2001 From: "Herman S." <429230+has207@users.noreply.github.com> Date: Fri, 24 Oct 2025 14:55:37 +0900 Subject: [PATCH] [Build] Disable clang21 warnings in third_party --- premake5.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/premake5.lua b/premake5.lua index 330f0da1e..811b8fbf6 100644 --- a/premake5.lua +++ b/premake5.lua @@ -192,6 +192,12 @@ if os.istarget("linux") and string.contains(CLANG_BIN, "clang") then "nontrivial-memcall", }) end + if tonumber(string.match(os.outputof(CLANG_BIN.." --version"), "version (%d%d)")) >= 21 then + filter({"language:C++", "toolset:clang"}) -- "platforms:Linux" + disablewarnings({ + "character-conversion", -- Needed for utfcpp third-party library + }) + end end filter({"language:C", "toolset:clang or gcc"}) -- "platforms:Linux"