config: wscons: fix warning on discarded const

Fix warning:

../config/wscons.c:47:11: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   47 |  { KB_UK, "gb" }, \
      |           ^~~~
../config/wscons.c:58:5: note: in expansion of macro ‘KB_OVRENC’
   58 |     KB_OVRENC,
      |     ^~~~~~~~~
../config/wscons.c:48:11: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   48 |  { KB_SV, "se" }, \
      |           ^~~~
[...]

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1444>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-27 17:26:06 +01:00 committed by Marge Bot
parent c187c54086
commit bcf55bded7

View File

@ -53,7 +53,7 @@
struct nameint {
int val;
char *name;
const char *name;
} kbdenc[] = {
KB_OVRENC,
KB_ENCTAB