diff options
author | ryanabx <ryanbrue@hotmail.com> | 2023-09-05 12:56:37 -0500 |
---|---|---|
committer | ryanabx <ryanbrue@hotmail.com> | 2023-09-11 09:39:10 -0500 |
commit | 14edf044afe54cfe3dced73b83e96e9112581511 (patch) | |
tree | f9f7fc2d41b614d5567174e1872f255b5873ffc5 /modules/gdscript/tests | |
parent | 221884e6bc260c38f16422081b7d4efd49a71375 (diff) | |
download | redot-engine-14edf044afe54cfe3dced73b83e96e9112581511.tar.gz |
Add "untyped_declaration" warning
Diffstat (limited to 'modules/gdscript/tests')
-rw-r--r-- | modules/gdscript/tests/gdscript_test_runner.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/tests/gdscript_test_runner.cpp b/modules/gdscript/tests/gdscript_test_runner.cpp index 874cbc6ee8..01772a2e38 100644 --- a/modules/gdscript/tests/gdscript_test_runner.cpp +++ b/modules/gdscript/tests/gdscript_test_runner.cpp @@ -149,6 +149,10 @@ GDScriptTestRunner::GDScriptTestRunner(const String &p_source_dir, bool p_init_l // Set all warning levels to "Warn" in order to test them properly, even the ones that default to error. ProjectSettings::get_singleton()->set_setting("debug/gdscript/warnings/enable", true); for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) { + if (i == GDScriptWarning::UNTYPED_DECLARATION) { + // TODO: Add ability for test scripts to specify which warnings to enable/disable for testing. + continue; + } String warning_setting = GDScriptWarning::get_settings_path_from_code((GDScriptWarning::Code)i); ProjectSettings::get_singleton()->set_setting(warning_setting, (int)GDScriptWarning::WARN); } |