You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +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:
@@ -357,6 +357,9 @@ static void _parser_show_block(const GDScriptParser::BlockNode *p_block, int p_i
|
||||
_parser_show_block(cf_node->body, p_indent + 1);
|
||||
|
||||
} break;
|
||||
case GDScriptParser::ControlFlowNode::CF_MATCH: {
|
||||
// FIXME: Implement
|
||||
} break;
|
||||
case GDScriptParser::ControlFlowNode::CF_SWITCH: {
|
||||
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user