mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-21 16:37:20 +01:00
Disabled the unused argument warning by default.
This commit is contained in:
parent
5025e3f4b6
commit
f93f0e1984
@ -2066,7 +2066,7 @@ CScriptLanguage::CScriptLanguage() {
|
||||
GLOBAL_DEF("debug/cscript/completion/autocomplete_setters_and_getters", false);
|
||||
for (int i = 0; i < (int)CScriptWarning::WARNING_MAX; i++) {
|
||||
String warning = CScriptWarning::get_name_from_code((CScriptWarning::Code)i).to_lower();
|
||||
bool default_enabled = !warning.begins_with("unsafe_") && i != CScriptWarning::UNUSED_CLASS_VARIABLE && i != CScriptWarning::RETURN_VALUE_DISCARDED;
|
||||
bool default_enabled = !warning.begins_with("unsafe_") && i != CScriptWarning::UNUSED_CLASS_VARIABLE && i != GDScriptWarning::UNUSED_ARGUMENT && i != CScriptWarning::RETURN_VALUE_DISCARDED;
|
||||
GLOBAL_DEF("debug/cscript/warnings/" + warning, default_enabled);
|
||||
}
|
||||
#endif // DEBUG_ENABLED
|
||||
|
@ -2111,7 +2111,7 @@ GDScriptLanguage::GDScriptLanguage() {
|
||||
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();
|
||||
bool default_enabled = !warning.begins_with("unsafe_") && i != GDScriptWarning::UNUSED_CLASS_VARIABLE && i != GDScriptWarning::RETURN_VALUE_DISCARDED;
|
||||
bool default_enabled = !warning.begins_with("unsafe_") && i != GDScriptWarning::UNUSED_CLASS_VARIABLE && i != GDScriptWarning::UNUSED_ARGUMENT && i != GDScriptWarning::RETURN_VALUE_DISCARDED;
|
||||
GLOBAL_DEF("debug/gdscript/warnings/" + warning, default_enabled);
|
||||
}
|
||||
#endif // DEBUG_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user