1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

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

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!