diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-15 13:20:55 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-15 13:20:55 -0800 |
commit | f1ec40923a6835a756076d8a05186740e9fd5eeb (patch) | |
tree | ee29e49319482ca36153a19f29552ae60ce22117 | |
parent | a60d768271cef4ff622b1dd34652c74d0ffc3125 (diff) |
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>
-rw-r--r-- | src/ffb_dac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ffb_dac.c b/src/ffb_dac.c index 5a61160..7d916d5 100644 --- a/src/ffb_dac.c +++ b/src/ffb_dac.c @@ -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); |