You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix warnings about unhandled enum value in switch [-Wswitch]
Fixes GCC 5 warnings of the form: core/io/http_client.cpp:288:9: warning: enumeration value 'STATUS_SSL_HANDSHAKE_ERROR' not handled in switch [-Wswitch] core/io/marshalls.cpp:806:9: warning: enumeration value 'AABB' not handled in switch [-Wswitch] Those can be trivial cases where adding a default fallback is the solution, or more complex issues/hidden bugs where missed values are actually meant to be handled.
This commit is contained in:
@@ -795,6 +795,7 @@ void TileSetEditor::_on_workspace_draw() {
|
||||
spin_priority->set_suffix(" / " + String::num(total, 0));
|
||||
draw_highlight_subtile(edited_shape_coord, queue_others);
|
||||
} break;
|
||||
default: {}
|
||||
}
|
||||
|
||||
draw_tile_subdivision(get_current_tile(), Color(0.347214, 0.722656, 0.617063));
|
||||
@@ -1365,6 +1366,7 @@ void TileSetEditor::_on_workspace_input(const Ref<InputEvent> &p_ie) {
|
||||
}
|
||||
}
|
||||
} break;
|
||||
default: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1434,6 +1436,7 @@ void TileSetEditor::_on_tool_clicked(int p_tool) {
|
||||
workspace->update();
|
||||
}
|
||||
} break;
|
||||
default: {}
|
||||
}
|
||||
}
|
||||
} else if (p_tool == ZOOM_OUT) {
|
||||
@@ -1862,6 +1865,7 @@ void TileSetEditor::draw_polygon_shapes() {
|
||||
}
|
||||
}
|
||||
} break;
|
||||
default: {}
|
||||
}
|
||||
if (creating_shape) {
|
||||
for (int j = 0; j < current_shape.size() - 1; j++) {
|
||||
|
||||
Reference in New Issue
Block a user