mirror of
https://github.com/X11Libre/xf86-video-sunffb.git
synced 2026-04-14 11:14:24 +00:00
Fix -Wdiscarded-qualifiers warning in init_dac_flags()
ffb_dac.c: In function ‘init_dac_flags’:
ffb_dac.c:385:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
385 | device = pFfb->psdp->device;
| ^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
@@ -356,7 +356,7 @@ init_dac_flags(FFBPtr pFfb)
|
||||
ffb_dac_info_t *p = &pFfb->dac_info;
|
||||
ffb_dacPtr dac = pFfb->dac;
|
||||
unsigned int did, manuf_rev, partnum;
|
||||
char *device;
|
||||
const char *device;
|
||||
|
||||
/* Fetch kernel WID. */
|
||||
p->kernel_wid = *((volatile unsigned char *)pFfb->dfb8x);
|
||||
|
||||
Reference in New Issue
Block a user