diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-28 09:47:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 09:47:29 +0200 |
commit | c7e646c30a5ca9abcd04383381d9a216cd2ee185 (patch) | |
tree | 431cb56ac164abee8845af163f9c23f7dbc3b1ab /main/tests | |
parent | 1c60465c5958446a2daccc54a1c58c3dee9b21a3 (diff) | |
parent | 7b081a7fc8011c5ce7194fc0eabb8768e0f9d4c6 (diff) |
Merge pull request #22447 from akien-mga/fix-warnings-Wswitch
Fix warnings about unhandled enum value in switch [-Wswitch]
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/test_gdscript.cpp | 3 | ||||
-rw-r--r-- | main/tests/test_shader_lang.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/main/tests/test_gdscript.cpp b/main/tests/test_gdscript.cpp index 412e809732..4d2fa2a26d 100644 --- a/main/tests/test_gdscript.cpp +++ b/main/tests/test_gdscript.cpp @@ -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; diff --git a/main/tests/test_shader_lang.cpp b/main/tests/test_shader_lang.cpp index 2cd39d0208..9df5973376 100644 --- a/main/tests/test_shader_lang.cpp +++ b/main/tests/test_shader_lang.cpp @@ -194,6 +194,9 @@ static String dump_node_code(SL::Node *p_node, int p_level) { code = vnode->name; } break; + case SL::Node::TYPE_VARIABLE_DECLARATION: { + // FIXME: Implement + } break; case SL::Node::TYPE_CONSTANT: { SL::ConstantNode *cnode = (SL::ConstantNode *)p_node; return get_constant_text(cnode->datatype, cnode->values); |