forked from enlightenment/enlightenment
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:
parent
24840b2f6b
commit
4c6248324b
|
@ -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++; \
|
||||
|
|
Loading…
Reference in New Issue