summaryrefslogtreecommitdiff
path: root/symbols.c
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@telfort.nl>2022-07-10 17:31:52 +0200
committerBenno Schulenberg <bensberg@telfort.nl>2022-07-11 09:23:49 +0200
commitc230cee968c7e7956a04e4d73bd6f23260f435db (patch)
tree5159b9efa2f25958a8e3b10c728cc00cee237bbb /symbols.c
parent97311ebd18e0dbc545d18d1a4b8b94b59c1fbd08 (diff)
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 <bensberg@telfort.nl>
Diffstat (limited to 'symbols.c')
-rw-r--r--symbols.c6
1 files changed, 5 insertions, 1 deletions
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;
}
}