Commit b22c590a authored by Julien Cristau's avatar Julien Cristau
Browse files

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's avatarJulien Cristau <jcristau@debian.org>
parent ca1c4c19
......@@ -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);
......
......@@ -35,7 +35,7 @@ authorization from the XFree86 Project and silicon Motion.
#include "smi_501.h"
void
SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file)
SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, const char *file)
{
SMIPtr pSmi = SMIPTR(pScrn);
int32_t tmp;
......
......@@ -1002,7 +1002,7 @@ SMI_LeaveVT(VT_FUNC_ARGS_DECL)
static void
SMI_DetectPanelSize(ScrnInfoPtr pScrn)
{
char *s;
const char *s;
int width, height;
SMIPtr pSmi = SMIPTR(pScrn);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment