summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.h
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-01-09 08:30:14 -0300
committerGeorge Marques <george@gmarqu.es>2020-01-09 08:30:14 -0300
commit7d4fc79eb359263ea4239dd7cd02ab07f90971a5 (patch)
tree23b0d267f214cfcfd758a05a8538964cda331072 /modules/gdscript/gdscript.h
parente7b7dc57fc8ecab198695d9bf6a4d694fb5a72a8 (diff)
downloadredot-engine-7d4fc79eb359263ea4239dd7cd02ab07f90971a5.tar.gz
Add GDScript warning for standalone expression
This makes the error message clearer as it might be used to call functions with side effects.
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r--modules/gdscript/gdscript.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h
index cc25c1c313..72389cdddc 100644
--- a/modules/gdscript/gdscript.h
+++ b/modules/gdscript/gdscript.h
@@ -297,6 +297,7 @@ struct GDScriptWarning {
UNSAFE_CAST, // Cast used in an unknown type
UNSAFE_CALL_ARGUMENT, // Function call argument is of a supertype of the require argument
DEPRECATED_KEYWORD, // The keyword is deprecated and should be replaced
+ STANDALONE_TERNARY, // Return value of ternary expression is discarded
WARNING_MAX,
} code;
Vector<String> symbols;