diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-05-29 17:51:07 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-03 15:51:07 -0400 |
commit | 768f43c04b5587d3b49ccd2d2f0133630c6a093b (patch) | |
tree | 09ac535e8969abbe443ab5b1f68bfe7448b75e2f /src/xftdraw.c | |
parent | 4dadf0ed93624a09b4a2f7403b79103b50681391 (diff) | |
download | xorg-lib-libXft-768f43c04b5587d3b49ccd2d2f0133630c6a093b.tar.gz |
cleanup warnings about discarding const
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/xftdraw.c')
-rw-r--r-- | src/xftdraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xftdraw.c b/src/xftdraw.c index 1fe6d4d..ef9dbc2 100644 --- a/src/xftdraw.c +++ b/src/xftdraw.c @@ -324,8 +324,8 @@ XftDrawSrcPicture (XftDraw *draw, _Xconst XftColor *color) { if (info->colors[i].pict && info->colors[i].screen == draw->screen && - !memcmp ((void *) &color->color, - (void *) &info->colors[i].color, + !memcmp ((const void *) &color->color, + (const void *) &info->colors[i].color, sizeof (XRenderColor))) return info->colors[i].pict; } |