summaryrefslogtreecommitdiff
path: root/src/Xrenderint.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-09-10 05:48:07 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-09-11 12:26:14 -0400
commitf43df87188375440dbad33d7c0beed2a607b8d1d (patch)
tree37a96904adad80020473db71bf8b6ccf7c9e6274 /src/Xrenderint.h
parentea28ca1a2cce8e0d8e5a1f620a809384ed276c37 (diff)
use _Xconst with DataInt32/DataInt16/memcpy to reduce strict compiler warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Xrenderint.h')
-rw-r--r--src/Xrenderint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xrenderint.h b/src/Xrenderint.h
index a17acc7..e424c37 100644
--- a/src/Xrenderint.h
+++ b/src/Xrenderint.h
@@ -106,9 +106,9 @@ XRenderFindDisplay (Display *dpy);
*/
#ifdef WORD64
-#define DataInt32(dpy,d,len) Data32(dpy,(long *) (d),len)
+#define DataInt32(dpy,d,len) Data32(dpy,(_Xconst long *) (d),len)
#else
-#define DataInt32(dpy,d,len) Data(dpy,(char *) (d),len)
+#define DataInt32(dpy,d,len) Data(dpy,(_Xconst char *) (d),len)
#endif
#endif /* _XRENDERINT_H_ */