Skip to content

Commit

Permalink
GDScript: Fix setting to disable all warnings
Browse files Browse the repository at this point in the history
The boolean was never set with the value from the project settings.

Fixes godotengine#64559.
  • Loading branch information
akien-mga authored and rohanrhu committed Dec 19, 2022
1 parent 486234d commit 39ee57e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ GDScriptParser::GDScriptParser() {
register_annotation(MethodInfo("@warning_ignore", PropertyInfo(Variant::STRING, "warning")), AnnotationInfo::CLASS | AnnotationInfo::VARIABLE | AnnotationInfo::SIGNAL | AnnotationInfo::CONSTANT | AnnotationInfo::FUNCTION | AnnotationInfo::STATEMENT, &GDScriptParser::warning_annotations, varray(), true);
// 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);

is_ignoring_warnings = !(bool)GLOBAL_GET("debug/gdscript/warnings/enable");
}

GDScriptParser::~GDScriptParser() {
Expand Down

0 comments on commit 39ee57e

Please sign in to comment.