Skip to content

Conversation

@fatduckling
Copy link
Contributor

Hi
I'm compiling with -Wpedantic and gcc is throwing the warning:

/home/saleem/GodotProjects/project/backend/include/scenes/example_scene.h:8:2: error: unused variable 'cls' [-Werror,-Wunused-variable]
    8 |         GDCLASS(ExampleScene, Control)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/saleem/software/godot/godot-cpp/include/godot_cpp/classes/wrapped.hpp:323:13: note: expanded from macro 'GDCLASS'
  323 |                         m_class *cls = reinterpret_cast<m_class *>(p_instance)...
      |                                  ^~~
1 error generated.

@fatduckling fatduckling requested a review from a team as a code owner January 23, 2026 11:33
@dsnopek dsnopek added the bug This has been identified as a bug label Jan 23, 2026
@dsnopek dsnopek added this to the 10.x milestone Jan 23, 2026
Copy link
Collaborator

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yeah, that variable is no longer needed after #1904

Thanks!

@dsnopek dsnopek merged commit c6bf465 into godotengine:master Jan 23, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This has been identified as a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants