diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-09-10 05:48:07 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-09-11 12:26:14 -0400 |
commit | f43df87188375440dbad33d7c0beed2a607b8d1d (patch) | |
tree | 37a96904adad80020473db71bf8b6ccf7c9e6274 /src/Tri.c | |
parent | ea28ca1a2cce8e0d8e5a1f620a809384ed276c37 (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/Tri.c')
-rw-r--r-- | src/Tri.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -64,7 +64,7 @@ XRenderCompositeTriangles (Display *dpy, } SetReqLen (req, len, len); len <<= 2; - DataInt32 (dpy, (int *) triangles, len); + DataInt32 (dpy, (_Xconst int *) triangles, len); ntriangle -= n; triangles += n; } @@ -110,7 +110,7 @@ XRenderCompositeTriStrip (Display *dpy, } SetReqLen (req, len, len); len <<= 2; - DataInt32 (dpy, (int *) points, len); + DataInt32 (dpy, (_Xconst int *) points, len); npoint -= (n - 2); points += (n - 2); } @@ -163,7 +163,7 @@ XRenderCompositeTriFan (Display *dpy, } SetReqLen (req, len, len); len <<= 2; - DataInt32 (dpy, (int *) points, len); + DataInt32 (dpy, (_Xconst int *) points, len); npoint -= (n - 1); points += (n - 1); } |