Skip to content

Unused variable in imgui_impl_glfw.cpp, line 914 #4459

@JamesBoer

Description

@JamesBoer

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions