#1009994 xkbcomp: warnings with "-w 0" due to missing warningLevel test for some WARN() occurrences

Package:
x11-xkb-utils
Source:
x11-xkb-utils
Description:
X11 XKB utilities
Submitter:
Vincent Lefevre
Date:
2026-01-10 11:40:02 UTC
Severity:
normal
Tags:
#1009994#5
Date:
2022-04-22 01:53:36 UTC
From:
To:
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;
        }
    }

#1009994#12
Date:
2026-01-10 10:08:19 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.