mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix various GCC 13 warnings
Fixes occurrences of `-Wtype-limits`, `-Wmaybe-uninitialized`,
`-Wduplicated-branches`.
(cherry picked from commit 02e4e208ef)
This commit is contained in:
@@ -160,7 +160,7 @@ struct CSGBrushOperation {
|
||||
};
|
||||
|
||||
struct Face2D {
|
||||
int vertex_idx[3];
|
||||
int vertex_idx[3] = {};
|
||||
};
|
||||
|
||||
Vector<Vertex2D> vertices;
|
||||
@@ -168,7 +168,7 @@ struct CSGBrushOperation {
|
||||
Plane plane;
|
||||
Transform to_2D;
|
||||
Transform to_3D;
|
||||
float vertex_snap2;
|
||||
float vertex_snap2 = 0.0;
|
||||
|
||||
inline int _get_point_idx(const Vector2 &p_point);
|
||||
inline int _add_vertex(const Vertex2D &p_vertex);
|
||||
|
||||
@@ -1696,11 +1696,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p
|
||||
}
|
||||
|
||||
next = node->sequence_outputs[output];
|
||||
if (next) {
|
||||
VSDEBUG("GOT NEXT NODE - " + itos(next->get_id()));
|
||||
} else {
|
||||
VSDEBUG("GOT NEXT NODE - NULL");
|
||||
}
|
||||
VSDEBUG("GOT NEXT NODE - " + (next ? itos(next->get_id()) : "NULL"));
|
||||
}
|
||||
|
||||
if (flow_stack) {
|
||||
|
||||
Reference in New Issue
Block a user