-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Unused variable in imgui_impl_glfw.cpp, line 914 #4459
Copy link
Copy link
Closed
Description
Version: 1.84.1
Branch: docking
In imgui_impl_glfw.cpp, there is an unused variable at line 914
ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData();
bd is never used except in an assert, but this still leaves a warning in release mode, for those of us who compile with that option, and worse, an error if we treat warnings as errors. So a better option would be to just put the entire thing inside the assert, like this:
IM_ASSERT(ImGui_ImplGlfw_GetBackendData()->ClientApi == GlfwClientApi_Vulkan);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels