mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-18 10:40:29 +01:00
On NetBSD gives warning:
In file included from /usr/include/ctype.h:100,
from ../hw/xfree86/parser/scan.c:58:
../hw/xfree86/parser/scan.c: In function ‘xf86getToken’:
../hw/xfree86/parser/scan.c:343:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
343 | else if ((c == ',') && !isalpha(configBuf[configPos])) {
| ^
../hw/xfree86/parser/scan.c:346:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
346 | else if ((c == '-') && !isalpha(configBuf[configPos])) {
| ^
../hw/xfree86/parser/scan.c: In function ‘xf86nameCompare’:
../hw/xfree86/parser/scan.c:1031:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1031 | c1 = (isupper(*s1) ? tolower(*s1) : *s1);
| ^
../hw/xfree86/parser/scan.c:1031:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1031 | c1 = (isupper(*s1) ? tolower(*s1) : *s1);
| ^
../hw/xfree86/parser/scan.c:1032:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1032 | c2 = (isupper(*s2) ? tolower(*s2) : *s2);
| ^
../hw/xfree86/parser/scan.c:1032:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1032 | c2 = (isupper(*s2) ? tolower(*s2) : *s2);
| ^
../hw/xfree86/parser/scan.c:1042:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1042 | c1 = (isupper(*s1) ? tolower(*s1) : *s1);
| ^
../hw/xfree86/parser/scan.c:1042:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1042 | c1 = (isupper(*s1) ? tolower(*s1) : *s1);
| ^
../hw/xfree86/parser/scan.c:1043:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1043 | c2 = (isupper(*s2) ? tolower(*s2) : *s2);
| ^
../hw/xfree86/parser/scan.c:1043:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
1043 | c2 = (isupper(*s2) ? tolower(*s2) : *s2);
| ^
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| common | ||
| ddc | ||
| dixmods | ||
| doc | ||
| dri | ||
| dri2 | ||
| drivers | ||
| exa | ||
| fbdevhw | ||
| glamor_egl | ||
| i2c | ||
| int10 | ||
| loader | ||
| man | ||
| modes | ||
| os-support | ||
| parser | ||
| ramdac | ||
| shadowfb | ||
| utils | ||
| vgahw | ||
| x86emu | ||
| xkb | ||
| .gitignore | ||
| meson.build | ||
| sdksyms.sh | ||
| xorg-wrapper.c | ||
| Xorg.sh.in | ||
| xorgconf.cpp | ||