diff options
author | Ran Benita <ran@unusedvar.com> | 2019-11-12 22:09:19 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-11-12 22:09:19 +0200 |
commit | 7d44c7a9f96428455219532c688dc0c7a69b4f79 (patch) | |
tree | 434e5b17176920809d7fe31bd09077ee1e8adf42 /src/xkbcomp | |
parent | 406beecae5081f706f2c2741d041a071eb09f9d8 (diff) | |
download | xorg-lib-libxkbcommon-7d44c7a9f96428455219532c688dc0c7a69b4f79.tar.gz |
expr: fix log message on some unexpected expression types
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'src/xkbcomp')
-rw-r--r-- | src/xkbcomp/expr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xkbcomp/expr.c b/src/xkbcomp/expr.c index bdd46df..5e310db 100644 --- a/src/xkbcomp/expr.c +++ b/src/xkbcomp/expr.c @@ -182,6 +182,9 @@ ExprResolveBoolean(struct xkb_context *ctx, const ExprDef *expr, case EXPR_ASSIGN: case EXPR_NEGATE: case EXPR_UNARY_PLUS: + case EXPR_ACTION_DECL: + case EXPR_ACTION_LIST: + case EXPR_KEYSYM_LIST: log_err(ctx, "%s of boolean values not permitted\n", expr_op_type_to_string(expr->expr.op)); break; @@ -474,6 +477,9 @@ ExprResolveString(struct xkb_context *ctx, const ExprDef *expr, case EXPR_INVERT: case EXPR_NOT: case EXPR_UNARY_PLUS: + case EXPR_ACTION_DECL: + case EXPR_ACTION_LIST: + case EXPR_KEYSYM_LIST: log_err(ctx, "%s of strings not permitted\n", expr_op_type_to_string(expr->expr.op)); return false; |