From 9d3b70c1d129e6bbeef9fbf323b0bef21ad125dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 17 Mar 2018 14:40:38 -0700 Subject: [PATCH] glsl-optimizer: Fixed warnings. --- scripts/shaderc.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/shaderc.lua b/scripts/shaderc.lua index 7d6fac4a0..3ef66714a 100644 --- a/scripts/shaderc.lua +++ b/scripts/shaderc.lua @@ -28,7 +28,7 @@ project "glslang" "/wd4715", -- warning C4715: 'spv::Builder::makeFpConstant': not all control paths return a value } - configuration { "not vs*" } + configuration { "mingw* or linux or osx" } buildoptions { "-Wno-ignored-qualifiers", "-Wno-missing-field-initializers", @@ -175,6 +175,11 @@ project "glsl-optimizer" configuration { "mingw* or linux or osx" } buildoptions { "-fno-strict-aliasing", -- glsl-optimizer has bugs if strict aliasing is used. + + "-Wno-implicit-fallthrough", + "-Wno-misleading-indentation", + "-Wno-sign-compare", + "-Wno-unused-function", "-Wno-unused-parameter", }