Avoid clang/gcc warnings: -Wnontrivial-memaccess in backends. (#8295, #8129, #8135)

This commit is contained in:
ocornut
2025-01-08 11:44:00 +01:00
parent 3115ae0815
commit 0514332474
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ struct ImGui_ImplDX12_InitInfo
D3D12_GPU_DESCRIPTOR_HANDLE LegacySingleSrvGpuDescriptor;
#endif
ImGui_ImplDX12_InitInfo() { memset(this, 0, sizeof(*this)); }
ImGui_ImplDX12_InitInfo() { memset((void*)this, 0, sizeof(*this)); }
};
// Follow "Getting Started" link and check examples/ folder to learn about using backends!