File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 3030
3131#include " geometry_2d.h"
3232
33+ GODOT_GCC_WARNING_PUSH_AND_IGNORE (" -Walloc-zero" )
3334#include " thirdparty/clipper2/include/clipper2/clipper.h"
35+ GODOT_GCC_WARNING_POP
3436#include " thirdparty/misc/polypartition.h"
3537#define STB_RECT_PACK_IMPLEMENTATION
3638#include " thirdparty/misc/stb_rect_pack.h"
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
181181 const NodeData *nd = &nodes[0 ];
182182
183183 Node **ret_nodes = (Node **)alloca (sizeof (Node *) * nc);
184+ ret_nodes[0 ] = nullptr ; // Sidesteps "maybe uninitialized" false-positives on GCC.
184185
185186 bool gen_node_path_cache = p_edit_state != GEN_EDIT_STATE_DISABLED && node_path_cache.is_empty ();
186187
You can’t perform that action at this time.
0 commit comments