diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-14 15:21:33 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-14 15:21:33 +0200 |
commit | 223fc3cdd3c9f4927ecf68ebaa405c7c0993beec (patch) | |
tree | a179cf07232afaeeee0bfce9c5ab9aeee4c0c94d /modules/gdscript/gdscript_analyzer.cpp | |
parent | 55840c5d24b71206ad3b75d0bc8e4438eca537b9 (diff) | |
parent | ceda96013142080f9eb29be8dc7ca07db6030552 (diff) | |
download | redot-engine-223fc3cdd3c9f4927ecf68ebaa405c7c0993beec.tar.gz |
Merge pull request #81440 from ryanabx/features/warn-strict-supertype-only
Remove `REDUNDANT_FOR_VARIABLE_TYPE` warning
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 7b3d31f4a8..42be231424 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2142,15 +2142,7 @@ void GDScriptAnalyzer::resolve_for(GDScriptParser::ForNode *p_for) { } } else if (!is_type_compatible(specified_type, variable_type)) { p_for->use_conversion_assign = true; -#ifdef DEBUG_ENABLED - } else { - parser->push_warning(p_for->datatype_specifier, GDScriptWarning::REDUNDANT_FOR_VARIABLE_TYPE, p_for->variable->name, variable_type.to_string(), specified_type.to_string()); -#endif } -#ifdef DEBUG_ENABLED - } else if (variable_type.is_hard_type()) { - parser->push_warning(p_for->datatype_specifier, GDScriptWarning::REDUNDANT_FOR_VARIABLE_TYPE, p_for->variable->name, variable_type.to_string(), specified_type.to_string()); -#endif } p_for->variable->set_datatype(specified_type); } else { |