1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Avoid clang/gcc warnings: -Wnontrivial-memaccess. (#8295)

This commit is contained in:
Arash Partow 2025-01-08 21:40:59 +11:00 committed by GitHub
parent 3cdf3f9411
commit 63649e0359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1064,7 +1064,7 @@ struct ImGui_ImplGlfw_ViewportData
WNDPROC PrevWndProc;
#endif
ImGui_ImplGlfw_ViewportData() { memset(this, 0, sizeof(*this)); IgnoreWindowSizeEventFrame = IgnoreWindowPosEventFrame = -1; }
ImGui_ImplGlfw_ViewportData() { memset((void*)this, 0, sizeof(*this)); IgnoreWindowSizeEventFrame = IgnoreWindowPosEventFrame = -1; }
~ImGui_ImplGlfw_ViewportData() { IM_ASSERT(Window == nullptr); }
};