diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-15 16:25:25 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-15 16:25:25 +0100 |
commit | 2d3197c525a0d8eb07c7fee4c8d88b2d62c2b691 (patch) | |
tree | d4fa4fe90c0078b176e2d0a9fff1eeeb45e352c1 | |
parent | 09efe15d10d43341c0b6f9b547abccf84569561d (diff) | |
parent | 19571a8f4440decee57782214463eb29e4eb5639 (diff) |
Merge pull request #65372 from Mickeon/fix-treat-warnings-as-errors
Fix "Treat Warnings as Errors" Project Setting doing nothing
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 71cedb4f38..053d81893d 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -230,7 +230,7 @@ void GDScriptParser::push_warning(const Node *p_source, GDScriptWarning::Code p_ warning.leftmost_column = p_source->leftmost_column; warning.rightmost_column = p_source->rightmost_column; - if (warn_level == GDScriptWarning::WarnLevel::ERROR) { + if (warn_level == GDScriptWarning::WarnLevel::ERROR || bool(GLOBAL_GET("debug/gdscript/warnings/treat_warnings_as_errors"))) { push_error(warning.get_message(), p_source); return; } |