Skip to content

Commit 9fdeb41

Browse files
authored
Backends: Vulkan: Suppress trivially-copyable warning (#8537)
1 parent df5690d commit 9fdeb41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/imgui_impl_vulkan.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ struct ImGui_ImplVulkan_ViewportData
251251
bool SwapChainNeedRebuild; // Flag when viewport swapchain resized in the middle of processing a frame
252252
bool SwapChainSuboptimal; // Flag when VK_SUBOPTIMAL_KHR was returned.
253253

254-
ImGui_ImplVulkan_ViewportData() { WindowOwned = SwapChainNeedRebuild = SwapChainSuboptimal = false; memset(&RenderBuffers, 0, sizeof(RenderBuffers)); }
254+
ImGui_ImplVulkan_ViewportData() { WindowOwned = SwapChainNeedRebuild = SwapChainSuboptimal = false; memset((void*)&RenderBuffers, 0, sizeof(RenderBuffers)); }
255255
~ImGui_ImplVulkan_ViewportData() { }
256256
};
257257

0 commit comments

Comments
 (0)