From af519f9685398cbb1eeb0d0bf0e400dade80871f Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 21 Oct 2019 14:43:47 -0600 Subject: vulkaninfo: reduced spurious warnings for msvc This commit removes several spurious wanings msvc would display, like implicit conversions for VkBool32 to bool and several signed/unsigned comparisons. Change-Id: Id485c044575105ec52fd49f9f0c5881674841a8e --- scripts/vulkaninfo_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/vulkaninfo_generator.py b/scripts/vulkaninfo_generator.py index eda3ec62..aabfac9b 100644 --- a/scripts/vulkaninfo_generator.py +++ b/scripts/vulkaninfo_generator.py @@ -552,8 +552,8 @@ def PrintStructure(struct, structure_names, gen): out += " p.PrintElement(obj." + v.name + "[i]);\n" out += " }\n p.ArrayEnd();\n" elif v.typeID == "VkBool32": - out += " p.PrintKeyBool(\"" + v.name + "\", obj." + \ - v.name + ", " + str(max_key_len) + ");\n" + out += " p.PrintKeyBool(\"" + v.name + "\", static_cast(obj." + \ + v.name + "), " + str(max_key_len) + ");\n" elif v.typeID == "VkDeviceSize": out += " p.PrintKeyValue(\"" + v.name + "\", to_hex_str(p, obj." + \ v.name + "), " + str(max_key_len) + ");\n" -- cgit v1.2.3