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) );