diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-03 05:41:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-03 05:43:02 +0300 |
commit | b8226a3ae1f27330cdd3d14ba7d9f98f998a5ca5 (patch) | |
tree | 360e913b21dbf87d8e01a55277e00fa5a7741541 /source/blender/blenlib/intern/expr_pylike_eval.c | |
parent | a677cdab56b27555303e9634db1e7a819de8be30 (diff) |
Cleanup: warnings
Quiet extra-semi-stmt & missing-variable-declarations
Diffstat (limited to 'source/blender/blenlib/intern/expr_pylike_eval.c')
-rw-r--r-- | source/blender/blenlib/intern/expr_pylike_eval.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c index 6dc0203ead2..49c7fb19b7d 100644 --- a/source/blender/blenlib/intern/expr_pylike_eval.c +++ b/source/blender/blenlib/intern/expr_pylike_eval.c @@ -164,7 +164,8 @@ eExprPyLike_EvalStatus BLI_expr_pylike_eval(ExprPyLike_Parsed *expr, #define FAIL_IF(condition) \ if (condition) { \ return EXPR_PYLIKE_FATAL_ERROR; \ - } + } \ + ((void)0) /* Check the stack requirement is at least remotely sane and allocate on the actual stack. */ FAIL_IF(expr->max_stack <= 0 || expr->max_stack > 1000); @@ -391,7 +392,8 @@ static BuiltinOpDef builtin_ops[] = { #define CHECK_ERROR(condition) \ if (!(condition)) { \ return false; \ - } + } \ + ((void)0) /* For simplicity simple token types are represented by their own character; * these are special identifiers for multi-character tokens. */ |