diff options
author | George Marques <george@gmarqu.es> | 2022-12-30 11:57:25 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2022-12-30 13:35:38 -0300 |
commit | bc739a46878d06bd77fcb924a8bd079071057be0 (patch) | |
tree | a28c22f7d9a52082c95137ba3a362a3fa80d88da /modules/gdscript/gdscript_warning.h | |
parent | 0c1584455101907ff5cce151c43879be2e3bf7a7 (diff) |
GDScript: Make using return of void function an error
Remove the `VOID_ASSIGNMENT` warning since those cases will be errors
now.
Diffstat (limited to 'modules/gdscript/gdscript_warning.h')
-rw-r--r-- | modules/gdscript/gdscript_warning.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_warning.h b/modules/gdscript/gdscript_warning.h index 7e4e975510..df6ee71425 100644 --- a/modules/gdscript/gdscript_warning.h +++ b/modules/gdscript/gdscript_warning.h @@ -57,7 +57,6 @@ public: UNREACHABLE_CODE, // Code after a return statement. UNREACHABLE_PATTERN, // Pattern in a match statement after a catch all pattern (wildcard or bind). STANDALONE_EXPRESSION, // Expression not assigned to a variable. - VOID_ASSIGNMENT, // Function returns void but it's assigned to a variable. NARROWING_CONVERSION, // Float value into an integer slot, precision is lost. INCOMPATIBLE_TERNARY, // Possible values of a ternary if are not mutually compatible. UNUSED_SIGNAL, // Signal is defined but never emitted. |