mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-05-09 15:21:35 +02:00
Disabled integer division and unused signal warnings by default in gdscript.
This commit is contained in:
parent
ebd3280443
commit
f59632a7d3
@ -2121,7 +2121,14 @@ GDScriptLanguage::GDScriptLanguage() {
|
|||||||
GLOBAL_DEF("debug/gdscript/completion/autocomplete_setters_and_getters", false);
|
GLOBAL_DEF("debug/gdscript/completion/autocomplete_setters_and_getters", false);
|
||||||
for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) {
|
for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) {
|
||||||
String warning = GDScriptWarning::get_name_from_code((GDScriptWarning::Code)i).to_lower();
|
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::UNUSED_ARGUMENT && 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 &&
|
||||||
|
i != GDScriptWarning::INTEGER_DIVISION &&
|
||||||
|
i != GDScriptWarning::UNUSED_SIGNAL;
|
||||||
|
|
||||||
GLOBAL_DEF("debug/gdscript/warnings/" + warning, default_enabled);
|
GLOBAL_DEF("debug/gdscript/warnings/" + warning, default_enabled);
|
||||||
}
|
}
|
||||||
#endif // DEBUG_ENABLED
|
#endif // DEBUG_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user