You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +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:
@@ -229,6 +229,17 @@ void TextureProgress::draw_nine_patch_stretched(const Ref<Texture> &p_texture, F
|
||||
first_section_size = topleft.y;
|
||||
last_section_size = bottomright.y;
|
||||
} break;
|
||||
case FILL_BILINEAR_LEFT_AND_RIGHT: {
|
||||
// TODO: Implement
|
||||
} break;
|
||||
case FILL_BILINEAR_TOP_AND_BOTTOM: {
|
||||
// TODO: Implement
|
||||
} break;
|
||||
case FILL_CLOCKWISE:
|
||||
case FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE:
|
||||
case FILL_COUNTER_CLOCKWISE: {
|
||||
// Those modes are circular, not relevant for nine patch
|
||||
} break;
|
||||
}
|
||||
|
||||
double width_filled = width_total * p_ratio;
|
||||
@@ -263,6 +274,17 @@ void TextureProgress::draw_nine_patch_stretched(const Ref<Texture> &p_texture, F
|
||||
dst_rect.size.y = width_filled;
|
||||
topleft.y = last_section_size;
|
||||
} break;
|
||||
case FILL_BILINEAR_LEFT_AND_RIGHT: {
|
||||
// TODO: Implement
|
||||
} break;
|
||||
case FILL_BILINEAR_TOP_AND_BOTTOM: {
|
||||
// TODO: Implement
|
||||
} break;
|
||||
case FILL_CLOCKWISE:
|
||||
case FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE:
|
||||
case FILL_COUNTER_CLOCKWISE: {
|
||||
// Those modes are circular, not relevant for nine patch
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user