mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +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:
parent
4cf5bb0276
commit
7b081a7fc8
49 changed files with 246 additions and 85 deletions
|
|
@ -997,6 +997,10 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|||
set_message(TTR("View Plane Transform."), 2);
|
||||
|
||||
} break;
|
||||
case TRANSFORM_YZ:
|
||||
case TRANSFORM_XZ:
|
||||
case TRANSFORM_XY: {
|
||||
} break;
|
||||
}
|
||||
}
|
||||
} break;
|
||||
|
|
@ -1545,6 +1549,10 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|||
plane = Plane(_edit.center, spatial_editor->get_gizmo_transform().basis.get_axis(2));
|
||||
axis = Vector3(0, 0, 1);
|
||||
break;
|
||||
case TRANSFORM_YZ:
|
||||
case TRANSFORM_XZ:
|
||||
case TRANSFORM_XY:
|
||||
break;
|
||||
}
|
||||
|
||||
Vector3 intersection;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue