paledit - silence warning about alignment - it's fine

the pointers we get are aligned and the strides will be too as a
result so this is a bogus warning in this case.
This commit is contained in:
Carsten Haitzler 2021-05-12 12:06:11 +01:00
parent 24840b2f6b
commit 4c6248324b
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ palimg_update(Evas_Object *img, Elm_Palette *pal)
while (pixn < 256)
{
#define PIX_WRITE(r, g, b, a) \
*((int *)p) = (a << 24) | (r << 16) | (g << 8) | (b); \
*((int *)(void *)p) = (a << 24) | (r << 16) | (g << 8) | (b); \
p += sizeof(int); \
pixn++; \
x++; \