summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_warning.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2022-01-04 09:32:43 -0300
committerGeorge Marques <george@gmarqu.es>2022-01-04 09:32:43 -0300
commitfd643c903dd3bb1a502d0f91576e51afeb7f29e2 (patch)
treea80d1f63ca5218ab3b2a8edc985de4ced4bfcfec /modules/gdscript/gdscript_warning.cpp
parent1032c2c434ec882905b1ab2426d8ce3043dd6958 (diff)
downloadredot-engine-fd643c903dd3bb1a502d0f91576e51afeb7f29e2.tar.gz
GDScript: Add annotation to ignore warnings
Diffstat (limited to 'modules/gdscript/gdscript_warning.cpp')
-rw-r--r--modules/gdscript/gdscript_warning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_warning.cpp b/modules/gdscript/gdscript_warning.cpp
index a351bd6dad..e15c7f294a 100644
--- a/modules/gdscript/gdscript_warning.cpp
+++ b/modules/gdscript/gdscript_warning.cpp
@@ -213,7 +213,7 @@ GDScriptWarning::Code GDScriptWarning::get_code_from_name(const String &p_name)
}
}
- ERR_FAIL_V_MSG(WARNING_MAX, "Invalid GDScript warning name: " + p_name);
+ return WARNING_MAX;
}
#endif // DEBUG_ENABLED