diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-11-24 16:07:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 16:07:16 +0100 |
commit | cd3d6e63a630414297cb580bcc891a0aa9f25127 (patch) | |
tree | baea83e758bc5e3d40d36075911c2cb76074ee0c /modules/gdscript/gdscript_parser.cpp | |
parent | f6f8a48459f9bbe97ee76a7186b9ae37e71e724b (diff) | |
parent | 910d6d8e62d0dfc25f31ff073e83a30785fd49f1 (diff) | |
download | redot-engine-cd3d6e63a630414297cb580bcc891a0aa9f25127.tar.gz |
Merge pull request #69108 from akien-mga/gdscript-ignore-warnings-debug
GDScript: Only check if ignoring warnings in debug build
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index d24cba4c59..7f2f49f336 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -148,7 +148,9 @@ GDScriptParser::GDScriptParser() { // 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); +#ifdef DEBUG_ENABLED is_ignoring_warnings = !(bool)GLOBAL_GET("debug/gdscript/warnings/enable"); +#endif } GDScriptParser::~GDScriptParser() { |