Skip to content

Fix compiling with 3D disabled due to unused navigation variable#81295

Merged
YuriSizov merged 1 commit intogodotengine:masterfrom
aaronfranke:fix-compile-no-3d
Sep 5, 2023
Merged

Fix compiling with 3D disabled due to unused navigation variable#81295
YuriSizov merged 1 commit intogodotengine:masterfrom
aaronfranke:fix-compile-no-3d

Conversation

@aaronfranke
Copy link
Member

In the current master, Godot does not compile with 3D disabled scons target=template_debug disable_3d=yes, at least it fails with Clang, due to an unused variable. This PR fixes that.

[ 51%] In file included from modules/navigation/godot_navigation_server.cpp:31:
modules/navigation/godot_navigation_server.h:83:22: error: private field 'navmesh_generator_3d' is not used [-Werror,-Wunused-private-field]
        NavMeshGenerator3D *navmesh_generator_3d = nullptr;
                            ^
1 error generated.

@YuriSizov YuriSizov merged commit d909181 into godotengine:master Sep 5, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@aaronfranke aaronfranke deleted the fix-compile-no-3d branch September 5, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants