diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2022-07-10 17:31:52 +0200 |
---|---|---|
committer | Benno Schulenberg <bensberg@telfort.nl> | 2022-07-11 09:23:49 +0200 |
commit | c230cee968c7e7956a04e4d73bd6f23260f435db (patch) | |
tree | 5159b9efa2f25958a8e3b10c728cc00cee237bbb /symbols.c | |
parent | 97311ebd18e0dbc545d18d1a4b8b94b59c1fbd08 (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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } } |