From f3c5d923143fcd6c25eb30d94477d6d31448db7b Mon Sep 17 00:00:00 2001 From: hsm Date: Fri, 9 Dec 2022 11:01:20 -0500 Subject: [PATCH] Fixed uninitialized local variable This patch solves the following Visual C compiler error when attempting to build the "util/tests/demos.sln" VS project from the command-line w/ MSBUILD: `error C2220: the following warning is treated as an error warning C4701: potentially uninitialized local variable 'xfbpipe' used` --- util/test/demos/vk/vk_mesh_zoo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/test/demos/vk/vk_mesh_zoo.cpp b/util/test/demos/vk/vk_mesh_zoo.cpp index fb47434e5..e7d8e5c96 100644 --- a/util/test/demos/vk/vk_mesh_zoo.cpp +++ b/util/test/demos/vk/vk_mesh_zoo.cpp @@ -336,7 +336,7 @@ void main() VkPipeline stride0pipe = createGraphicsPipeline(pipeCreateInfo); - VkPipeline xfbpipe; + VkPipeline xfbpipe = NULL; VkPipelineRasterizationStateStreamCreateInfoEXT rastInfo = { VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT, NULL, 0, 2,