warn - silence invalid alignment warning

these potrs are to structs we malloc thus will be universally aligned
for all data so... not valid. throw in a void * cast to do that.
This commit is contained in:
Carsten Haitzler 2019-09-20 10:54:12 +01:00
parent 6cb25300f1
commit c16a58d75f
1 changed files with 1 additions and 1 deletions

View File

@ -1360,7 +1360,7 @@ _e_actions_zone_get(E_Object *obj)
else if (obj->type == (int)E_CLIENT_TYPE)
return ((E_Client *)(void *)obj)->zone;
else if (obj->type == (int)E_SHELF_TYPE)
return ((E_Shelf *)obj)->zone;
return ((E_Shelf *)(void *)obj)->zone;
else if (e_obj_is_win(obj))
return e_win_client_get((void*)obj)->zone;
}