mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: os-support: bsd: fix warning on discarded const
Fix warnings:
../hw/xfree86/os-support/bsd/bsd_init.c
../hw/xfree86/os-support/bsd/bsd_init.c:91:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
91 | "pccons (with X support)",
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../hw/xfree86/os-support/bsd/bsd_init.c:97:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
97 | "pcvt",
| ^~~~~~
../hw/xfree86/os-support/bsd/bsd_init.c:100:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
100 | "wscons",
| ^~~~~~~~
../hw/xfree86/os-support/bsd/bsd_init.c:462:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
462 | vtprefix = "/dev/ttyv";
| ^
../hw/xfree86/os-support/bsd/bsd_init.c:471:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
471 | vtprefix = "/dev/ttyE";
| ^
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1446>
(cherry picked from commit 6eea4f0b8c)
This commit is contained in:
committed by
Alan Coopersmith
parent
f05897e027
commit
10a1b51e65
@@ -86,7 +86,7 @@ static int initialVT = -1;
|
||||
#define CHECK_DRIVER_MSG \
|
||||
"Check your kernel's console driver configuration and /dev entries"
|
||||
|
||||
static char *supported_drivers[] = {
|
||||
static const char *supported_drivers[] = {
|
||||
#ifdef PCCONS_SUPPORT
|
||||
"pccons (with X support)",
|
||||
#endif
|
||||
@@ -453,7 +453,8 @@ xf86OpenPcvt(void)
|
||||
/* This looks much like syscons, since pcvt is API compatible */
|
||||
int fd = -1;
|
||||
vtmode_t vtmode;
|
||||
char vtname[12], *vtprefix;
|
||||
char vtname[12];
|
||||
const char *vtprefix;
|
||||
#ifdef __NetBSD__
|
||||
struct pcvtid pcvt_version;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user