Bug#1009994: xkbcomp: warnings with "-w 0" due to missing warningLevel test for some WARN() occurrences
Package: x11-xkb-utils
Version: 7.7+6
Severity: normal
Tags: upstream
Forwarded: https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues/20
The the xkbcomp(1) man page says:
-w lvl Controls the reporting of warnings during compilation. A
warning level of 0 disables all warnings; a warning level
of 10 enables them all.
But it is possible to get some warnings even with "-w 0", such as
Warning: Could not resolve keysym XF86EmojiPicker
The xkbcomp code shows that some WARN() occurrences are not
preceded by a warningLevel test.
For instance, in xkbcomp/symbols.c, the following one is OK:
if ((!ExprResolveString(value, &tmp, NULL, NULL))
&& (warningLevel > 0))
{
WARN("The type field of a key symbol map must be a string\n");
ACTION("Ignoring illegal type definition\n");
}
but the "Could not resolve keysym..." warning isn't:
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]);
key->syms[ndx][i] = NoSymbol;
}
}
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages x11-xkb-utils depends on:
ii libc6 2.33-7
ii libx11-6 2:1.7.5-1
ii libxaw7 2:1.0.14-1
ii libxkbfile1 1:1.1.0-1
ii libxrandr2 2:1.5.2-1
ii libxt6 1:1.2.1-1
x11-xkb-utils recommends no packages.
x11-xkb-utils suggests no packages.
-- no debconf information
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: