Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GCC -Wmaybe-uninitialized warnings #80615

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/io/remote_filesystem_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class RemoteFilesystemClient {
String _get_cache_path() { return cache_path; }
struct FileCache {
String path; // Local path (as in "folder/to/file.png")
uint64_t server_modified_time; // MD5 checksum.
uint64_t modified_time;
uint64_t server_modified_time = 0; // MD5 checksum.
uint64_t modified_time = 0;
};
virtual bool _is_configured() { return !cache_path.is_empty(); }
// Can be re-implemented per platform. If so, feel free to ignore get_cache_path()
Expand Down
8 changes: 4 additions & 4 deletions platform/linuxbsd/x11/gl_manager_x11.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ class GLManager_X11 {
};

struct GLDisplay {
GLDisplay() { context = nullptr; }
GLDisplay() {}
~GLDisplay();
GLManager_X11_Private *context = nullptr;
::Display *x11_display;
XVisualInfo x_vi;
::Display *x11_display = nullptr;
XVisualInfo x_vi = {};
};

// just for convenience, window and display struct
struct XWinDisp {
::Window x11_window;
::Display *x11_display;
::Display *x11_display = nullptr;
} _x_windisp;

LocalVector<GLWindow> _windows;
Expand Down
2 changes: 2 additions & 0 deletions tests/servers/test_navigation_server_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ TEST_SUITE("[Navigation]") {
navigation_server->free(map);
}

#ifndef DISABLE_DEPRECATED
// This test case uses only public APIs on purpose - other test cases use simplified baking.
// FIXME: Remove once deprecated `region_bake_navigation_mesh()` is removed.
TEST_CASE("[NavigationServer3D][SceneTree][DEPRECATED] Server should be able to bake map correctly") {
Expand Down Expand Up @@ -470,6 +471,7 @@ TEST_SUITE("[Navigation]") {
memdelete(mesh_instance);
memdelete(node_3d);
}
#endif // DISABLE_DEPRECATED

// This test case uses only public APIs on purpose - other test cases use simplified baking.
TEST_CASE("[NavigationServer3D][SceneTree] Server should be able to bake map correctly") {
Expand Down