From a9a5bcb152def4c737abb84a665232fadfb5e5b2 Mon Sep 17 00:00:00 2001 From: Diego Nieto Cid Date: Tue, 20 Jul 2010 21:31:10 -0300 Subject: Emit warnings on undeclared virtual modifiers. --- console-client/xkb/parser.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'console-client') diff --git a/console-client/xkb/parser.y b/console-client/xkb/parser.y index a9f6cbd5..79dfdbba 100644 --- a/console-client/xkb/parser.y +++ b/console-client/xkb/parser.y @@ -322,6 +322,8 @@ vmod: IDENTIFIER { if (($$ = vmod_find ($1)) != 0) $$ = 1 << ($$ - 1); + else + fprintf(stderr, "warning: %s virtual modifier is not defined.", $1); } ; -- cgit v1.2.3