ocornut/imgui

GLFWwindow declared with a mismatched class-key

Closed this issue · 2 comments

Version/Branch of Dear ImGui:

docking, HEAD

Back-ends:

imgui_impl_glfw.h

Compiler, OS:

Debian Forky

Full config/build information:

g++ (Debian 15.2.0-4) 15.2.0
c++17

Details:

When compiling, I have this warning, but it does not impact the compilation. So small issue.

imgui_impl_glfw.h:31:7: warning: ‘GLFWwindow’ declared with a mismatched class-key ‘class’ [-Wmismatched-tags]
   31 | class GLFWwindow;
      |       ^~~~~~~~~~

GLFW is a C project, "class" Should be replaced by "struct", which fixes the warning.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

N/A

Our code use “struct” and if you use git blame yoi’ll see it has been like this for 10 years.

@ocornut oh my bad, I did not know what happened to my file. I cloned back and indeed it's fine. Sorry for the spam.