summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-04-18 14:08:48 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-05-12 17:43:58 +0300
commitc2fbb40e9ab045a5eadbd013f3a23e54fce45191 (patch)
treeca90a0f1a5784a3dd2498a2a255f62b33e9dd438 /modules/gdscript/gdscript_analyzer.cpp
parent20ed51a9129f97bb8d001262155fb3ccfc1e3c89 (diff)
downloadredot-engine-c2fbb40e9ab045a5eadbd013f3a23e54fce45191.tar.gz
GDScript: Fix warning ignoring for member variables
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index c8cdac3702..9092ae2969 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -1336,10 +1336,11 @@ void GDScriptAnalyzer::resolve_class_body(GDScriptParser::ClassNode *p_class, co
push_error(vformat(R"(Getter with type "%s" cannot be used along with setter of type "%s".)", getter_function->datatype.to_string(), setter_function->parameters[0]->datatype.to_string()), member.variable);
}
}
+ }
+
#ifdef DEBUG_ENABLED
- parser->ignored_warnings = previously_ignored_warnings;
+ parser->ignored_warnings = previously_ignored_warnings;
#endif // DEBUG_ENABLED
- }
}
}