From 2a56aca2b1113c4dd565b6138c49ed21da9bcc7c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Mar 2022 17:40:38 -0400 Subject: Fix warning in VS2019 --- examples/pugl_vulkan_demo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/pugl_vulkan_demo.c b/examples/pugl_vulkan_demo.c index fe8437e..06d73ee 100644 --- a/examples/pugl_vulkan_demo.c +++ b/examples/pugl_vulkan_demo.c @@ -1032,7 +1032,9 @@ onEvent(PuglView* const view, const PuglEvent* const e) int main(int argc, char** argv) { - VulkanApp app = {0}; + VulkanApp app; + memset(&app, 0, sizeof(app)); + VulkanState* vk = &app.vk; const uint32_t defaultWidth = 640; const uint32_t defaultHeight = 360; -- cgit v1.2.1