diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-17 13:00:33 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-17 13:00:33 +0200 |
commit | b569ae3ddc6834eda566eb94ca18e475deed0a84 (patch) | |
tree | 4c976e4b8efaacc32c35f0ae53c4ce7818ce5735 /modules/gdscript/gdscript_analyzer.cpp | |
parent | 5b341621e6cdcf0f3a37a432b7fef2fce1e1cf00 (diff) | |
parent | 7dd801c580bc27cabe3dd1f2475d90efcf3c3197 (diff) | |
download | redot-engine-b569ae3ddc6834eda566eb94ca18e475deed0a84.tar.gz |
Merge pull request #92027 from dalexeev/gds-fix-standalone-expression-for-preload
GDScript: Fix `STANDALONE_EXPRESSION` warning for `preload()`
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 38d5c59e0e..a2680c932f 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3394,6 +3394,7 @@ void GDScriptAnalyzer::reduce_call(GDScriptParser::CallNode *p_call, bool p_is_a } #ifdef DEBUG_ENABLED + // FIXME: No warning for built-in constructors and utilities due to early return. if (p_is_root && return_type.kind != GDScriptParser::DataType::UNRESOLVED && return_type.builtin_type != Variant::NIL && !(p_call->is_super && p_call->function_name == GDScriptLanguage::get_singleton()->strings._init)) { parser->push_warning(p_call, GDScriptWarning::RETURN_VALUE_DISCARDED, p_call->function_name); |