diff options
author | Julien Cristau <jcristau@debian.org> | 2015-05-08 13:40:46 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2015-05-09 16:50:17 +0200 |
commit | b22c590a546b2ea5f256e7654c4a6b165b320e80 (patch) | |
tree | 95b6f949839e77413612e892685cc99b64ba1a95 /src/smi.h | |
parent | ca1c4c19d688d215b52f4e7e2a634c0cbcfff3c1 (diff) |
Fix a couple const-ness warnings
smi_accel.c: In function 'SMI_GEReset':
smi_accel.c:51:1: warning: passing argument 4 of 'SMI_GEReset' discards 'const' qualifier from pointer target type
WaitIdle();
^
smi_accel.c:38:1: note: expected 'char *' but argument is of type 'const char *'
SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file)
^
[...]
smi_driver.c: In function 'SMI_DetectPanelSize':
smi_driver.c:1011:12: warning: assignment discards 'const' qualifier from pointer target type
if ((s = xf86GetOptValString(pSmi->Options, OPTION_PANEL_SIZE)) != NULL) {
^
Signed-off-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'src/smi.h')
-rw-r--r-- | src/smi.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -372,7 +372,7 @@ Bool SMI_I2CInit(ScrnInfoPtr pScrn); /* smi_accel.c */ void SMI_AccelSync(ScrnInfoPtr pScrn); -void SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file); +void SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, const char *file); void SMI_EngineReset(ScrnInfoPtr); void SMI_SetClippingRectangle(ScrnInfoPtr, int, int, int, int); void SMI_DisableClipping(ScrnInfoPtr); |