From c230cee968c7e7956a04e4d73bd6f23260f435db Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 10 Jul 2022 17:31:52 +0200 Subject: suppress the "Could not resolve" warning when 'warningLevel' is zero Two years ago, commit c8cfca25ab changed an error to a warning but forgot to add a check for 'warningLevel'. This partially addresses issue #20. Reported-by: Vincent Lefevre Signed-off-by: Benno Schulenberg --- symbols.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/symbols.c b/symbols.c index 6fa7742..803de7e 100644 --- a/symbols.c +++ b/symbols.c @@ -968,7 +968,11 @@ AddSymbolsToKey(KeyInfo * key, key->symsDefined |= (1 << ndx); for (i = 0; i < nSyms; i++) { if (!LookupKeysym(value->value.list.syms[i], &key->syms[ndx][i])) { - WARN("Could not resolve keysym %s\n", value->value.list.syms[i]); + if (warningLevel > 0) + { + WARN("Could not resolve keysym %s\n", + value->value.list.syms[i]); + } key->syms[ndx][i] = NoSymbol; } } -- cgit v1.2.3