summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authormashumafi <mashumafi@gmail.com>2019-11-07 23:01:22 -0500
committermashumafi <mashumafi@gmail.com>2019-11-07 23:01:22 -0500
commitd7137a6b7233c6867c717883a61a1c3607ae84e5 (patch)
tree5639cc095f45e2cd6c399dd081be64ba6e58075a /modules/gdscript/gdscript.cpp
parente4d734725ad7433cb2d75cd71f43e4f7c2b92417 (diff)
Add setting to exclude addons from script warnings
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index edb296437b..b90fab8221 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -2141,6 +2141,7 @@ GDScriptLanguage::GDScriptLanguage() {
#ifdef DEBUG_ENABLED
GLOBAL_DEF("debug/gdscript/warnings/enable", true);
GLOBAL_DEF("debug/gdscript/warnings/treat_warnings_as_errors", false);
+ GLOBAL_DEF("debug/gdscript/warnings/exclude_addons", true);
GLOBAL_DEF("debug/gdscript/completion/autocomplete_setters_and_getters", false);
for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) {
String warning = GDScriptWarning::get_name_from_code((GDScriptWarning::Code)i).to_lower();