Mark the dixChangeWindowProperty() value argument as const
It is copied using memcpy() and not modified so we can add const. This fixes a -Wincompatible-pointer-types-discards-qualifiers compiler warning that was failing a -Werror XVnc build for me. Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
This commit is contained in:
parent
fb5322ce28
commit
d83c84bd9d
|
@ -253,7 +253,7 @@ ProcChangeProperty(ClientPtr client)
|
||||||
int
|
int
|
||||||
dixChangeWindowProperty(ClientPtr pClient, WindowPtr pWin, Atom property,
|
dixChangeWindowProperty(ClientPtr pClient, WindowPtr pWin, Atom property,
|
||||||
Atom type, int format, int mode, unsigned long len,
|
Atom type, int format, int mode, unsigned long len,
|
||||||
void *value, Bool sendevent)
|
const void *value, Bool sendevent)
|
||||||
{
|
{
|
||||||
PropertyPtr pProp;
|
PropertyPtr pProp;
|
||||||
PropertyRec savedProp;
|
PropertyRec savedProp;
|
||||||
|
|
|
@ -72,7 +72,7 @@ extern _X_EXPORT int dixChangeWindowProperty(ClientPtr pClient,
|
||||||
int format,
|
int format,
|
||||||
int mode,
|
int mode,
|
||||||
unsigned long len,
|
unsigned long len,
|
||||||
void *value,
|
const void *value,
|
||||||
Bool sendevent);
|
Bool sendevent);
|
||||||
|
|
||||||
extern _X_EXPORT int DeleteProperty(ClientPtr /*client */ ,
|
extern _X_EXPORT int DeleteProperty(ClientPtr /*client */ ,
|
||||||
|
|
Loading…
Reference in New Issue