diff options
author | George Marques <george@gmarqu.es> | 2022-01-04 09:32:43 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2022-01-04 09:32:43 -0300 |
commit | fd643c903dd3bb1a502d0f91576e51afeb7f29e2 (patch) | |
tree | a80d1f63ca5218ab3b2a8edc985de4ced4bfcfec /modules/gdscript/gdscript_warning.cpp | |
parent | 1032c2c434ec882905b1ab2426d8ce3043dd6958 (diff) | |
download | redot-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.cpp | 2 |
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 |