From 787ecc1138e45d122b71b920e143f0629c4a020d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 29 Jun 2023 09:25:54 -0700 Subject: [PATCH] Cleanup. --- scripts/shaderc.lua | 1 + tools/shaderc/shaderc_hlsl.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/shaderc.lua b/scripts/shaderc.lua index 92f61f8bd..4da12fafa 100644 --- a/scripts/shaderc.lua +++ b/scripts/shaderc.lua @@ -96,6 +96,7 @@ project "spirv-opt" configuration { "vs*" } buildoptions { "/wd4127", -- warning C4127: conditional expression is constant + "/wd4267", -- warning C4267: 'argument': conversion from '' to '', possible loss of data "/wd4389", -- warning C4389: '==': signed/unsigned mismatch "/wd4702", -- warning C4702: unreachable code "/wd4706", -- warning C4706: assignment within conditional expression diff --git a/tools/shaderc/shaderc_hlsl.cpp b/tools/shaderc/shaderc_hlsl.cpp index 2397304cd..82a924490 100644 --- a/tools/shaderc/shaderc_hlsl.cpp +++ b/tools/shaderc/shaderc_hlsl.cpp @@ -533,7 +533,7 @@ namespace bgfx { namespace hlsl if (end.isEmpty()) end = bx::strFind(bindDesc.Name, "Texture"); - if (!end.isEmpty()) + if (!end.isEmpty() ) { Uniform un; un.name.assign(bindDesc.Name, (end.getPtr() - bindDesc.Name) );