You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Only check if ignoring warnings in debug build
This commit is contained in:
@@ -148,7 +148,9 @@ GDScriptParser::GDScriptParser() {
|
|||||||
// Networking.
|
// Networking.
|
||||||
register_annotation(MethodInfo("@rpc", PropertyInfo(Variant::STRING, "mode"), PropertyInfo(Variant::STRING, "sync"), PropertyInfo(Variant::STRING, "transfer_mode"), PropertyInfo(Variant::INT, "transfer_channel")), AnnotationInfo::FUNCTION, &GDScriptParser::rpc_annotation, varray("", "", "", 0), true);
|
register_annotation(MethodInfo("@rpc", PropertyInfo(Variant::STRING, "mode"), PropertyInfo(Variant::STRING, "sync"), PropertyInfo(Variant::STRING, "transfer_mode"), PropertyInfo(Variant::INT, "transfer_channel")), AnnotationInfo::FUNCTION, &GDScriptParser::rpc_annotation, varray("", "", "", 0), true);
|
||||||
|
|
||||||
|
#ifdef DEBUG_ENABLED
|
||||||
is_ignoring_warnings = !(bool)GLOBAL_GET("debug/gdscript/warnings/enable");
|
is_ignoring_warnings = !(bool)GLOBAL_GET("debug/gdscript/warnings/enable");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
GDScriptParser::~GDScriptParser() {
|
GDScriptParser::~GDScriptParser() {
|
||||||
|
|||||||
@@ -1217,13 +1217,14 @@ private:
|
|||||||
bool can_break = false;
|
bool can_break = false;
|
||||||
bool can_continue = false;
|
bool can_continue = false;
|
||||||
bool is_continue_match = false; // Whether a `continue` will act on a `match`.
|
bool is_continue_match = false; // Whether a `continue` will act on a `match`.
|
||||||
bool is_ignoring_warnings = false;
|
|
||||||
List<bool> multiline_stack;
|
List<bool> multiline_stack;
|
||||||
|
|
||||||
ClassNode *head = nullptr;
|
ClassNode *head = nullptr;
|
||||||
Node *list = nullptr;
|
Node *list = nullptr;
|
||||||
List<ParserError> errors;
|
List<ParserError> errors;
|
||||||
|
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef DEBUG_ENABLED
|
||||||
|
bool is_ignoring_warnings = false;
|
||||||
List<GDScriptWarning> warnings;
|
List<GDScriptWarning> warnings;
|
||||||
HashSet<String> ignored_warnings;
|
HashSet<String> ignored_warnings;
|
||||||
HashSet<uint32_t> ignored_warning_codes;
|
HashSet<uint32_t> ignored_warning_codes;
|
||||||
|
|||||||
Reference in New Issue
Block a user