expr: fix log message on some unexpected expression types

Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2019-11-12 22:09:19 +02:00
parent 406beecae5
commit 7d44c7a9f9
1 changed files with 6 additions and 0 deletions

View File

@ -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;