summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_construct.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2024-04-09 14:15:51 -0300
committerGeorge Marques <george@gmarqu.es>2024-04-10 11:59:57 -0300
commit877802e2520e03593d2e5cf76cfa7659899b1aa4 (patch)
treefd39354ece46ff416f468babd8e34d5c6f61bdd7 /core/variant/variant_construct.cpp
parenta7b860250f305f6cbaf61c30f232ff3bbdfdda0b (diff)
downloadredot-engine-877802e2520e03593d2e5cf76cfa7659899b1aa4.tar.gz
GDScript: Don't warn on unassigned for builtin-typed variables
If the type of a variable is a built-in Variant type, then it will automatically be assigned a default value based on the type. This means that the explicit initialization may be unnecessary. Thus this commit removes the warning in such case. This also changes the meaning of the unassigned warning to happen when the variable is used before being assigned, not when it has zero assignments.
Diffstat (limited to 'core/variant/variant_construct.cpp')
0 files changed, 0 insertions, 0 deletions