summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 14:42:03 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 16:25:35 +0900
commit9c984ea9cfb810ad053c97b86a2751df9f2ec8a2 (patch)
tree2e79af2c76504264581e44d0b6eb91f31bb2d2cb
parent48a92ee0672281e2390673027e2ad606f403486c (diff)
e ptr cast via void fix to reduce warnings
so we cast a lot of ptrs to other types as that is then the actual type of the object. all these objects are allocated by malloc nad friends so this is ok. but gcc on arm is not happy and warns. maybe it assume this ptr could be to an element in an array of structs of this type and so on thus will have specific alignment enforced by compiler but our casting may disturb it? anyway. cast via void first fixes it. we can focus on other real warnings and errors instead.
-rw-r--r--src/bin/e_actions.c154
-rw-r--r--src/bin/e_dnd.c12
-rw-r--r--src/bin/e_zone.c8
-rw-r--r--src/modules/conf/e_mod_main.c2
-rw-r--r--src/modules/shot/e_mod_main.c2
-rw-r--r--src/modules/teamwork/e_mod_tw.c6
6 files changed, 92 insertions, 92 deletions
diff --git a/src/bin/e_actions.c b/src/bin/e_actions.c
index 0cfcd1dc6..50421ddd9 100644
--- a/src/bin/e_actions.c
+++ b/src/bin/e_actions.c
@@ -97,8 +97,8 @@ ACT_FN_GO(window_move, EINA_UNUSED)
97 obj = E_OBJECT(e_client_focused_get()); 97 obj = E_OBJECT(e_client_focused_get());
98 if (!obj) return; 98 if (!obj) return;
99 if (obj->type != E_CLIENT_TYPE) return; 99 if (obj->type != E_CLIENT_TYPE) return;
100 if (!((E_Client *)obj)->lock_user_location) 100 if (!((E_Client *)(void *)obj)->lock_user_location)
101 e_client_act_move_begin((E_Client *)obj, NULL); 101 e_client_act_move_begin((E_Client *)(void *)obj, NULL);
102} 102}
103 103
104ACT_FN_GO_MOUSE(window_move, EINA_UNUSED) 104ACT_FN_GO_MOUSE(window_move, EINA_UNUSED)
@@ -106,7 +106,7 @@ ACT_FN_GO_MOUSE(window_move, EINA_UNUSED)
106 if (!obj) obj = E_OBJECT(e_client_focused_get()); 106 if (!obj) obj = E_OBJECT(e_client_focused_get());
107 if (!obj) return EINA_FALSE; 107 if (!obj) return EINA_FALSE;
108 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE; 108 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE;
109 e_client_act_move_begin((E_Client *)obj, ev); 109 e_client_act_move_begin((E_Client *)(void *)obj, ev);
110 return EINA_TRUE; 110 return EINA_TRUE;
111} 111}
112 112
@@ -115,14 +115,14 @@ ACT_FN_GO_SIGNAL(window_move, )
115 if (!obj) obj = E_OBJECT(e_client_focused_get()); 115 if (!obj) obj = E_OBJECT(e_client_focused_get());
116 if (!obj) return; 116 if (!obj) return;
117 if (obj->type != E_CLIENT_TYPE) return; 117 if (obj->type != E_CLIENT_TYPE) return;
118 if (!((E_Client *)obj)->lock_user_location) 118 if (!((E_Client *)(void *)obj)->lock_user_location)
119 { 119 {
120 if ((params) && (!strcmp(params, "end"))) 120 if ((params) && (!strcmp(params, "end")))
121 e_client_signal_move_end((E_Client *)obj, sig, src); 121 e_client_signal_move_end((E_Client *)(void *)obj, sig, src);
122 else 122 else
123 { 123 {
124 if (!((E_Client *)obj)->moving) 124 if (!((E_Client *)(void *)obj)->moving)
125 e_client_signal_move_begin((E_Client *)obj, sig, src); 125 e_client_signal_move_begin((E_Client *)(void *)obj, sig, src);
126 } 126 }
127 } 127 }
128} 128}
@@ -132,7 +132,7 @@ ACT_FN_END(window_move, EINA_UNUSED)
132 if (!obj) obj = E_OBJECT(e_client_focused_get()); 132 if (!obj) obj = E_OBJECT(e_client_focused_get());
133 if (!obj) return; 133 if (!obj) return;
134 if (obj->type != E_CLIENT_TYPE) return; 134 if (obj->type != E_CLIENT_TYPE) return;
135 e_client_act_move_end((E_Client *)obj, NULL); 135 e_client_act_move_end((E_Client *)(void *)obj, NULL);
136} 136}
137 137
138ACT_FN_END_MOUSE(window_move, EINA_UNUSED) 138ACT_FN_END_MOUSE(window_move, EINA_UNUSED)
@@ -140,7 +140,7 @@ ACT_FN_END_MOUSE(window_move, EINA_UNUSED)
140 if (!obj) obj = E_OBJECT(e_client_focused_get()); 140 if (!obj) obj = E_OBJECT(e_client_focused_get());
141 if (!obj) return EINA_FALSE; 141 if (!obj) return EINA_FALSE;
142 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE; 142 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE;
143 e_client_act_move_end((E_Client *)obj, ev); 143 e_client_act_move_end((E_Client *)(void *)obj, ev);
144 return EINA_TRUE; 144 return EINA_TRUE;
145} 145}
146 146
@@ -148,8 +148,8 @@ ACT_FN_GO_KEY(window_move, EINA_UNUSED, EINA_UNUSED)
148{ 148{
149 if (!obj) obj = E_OBJECT(e_client_focused_get()); 149 if (!obj) obj = E_OBJECT(e_client_focused_get());
150 if (!obj) return; 150 if (!obj) return;
151 if (!((E_Client *)obj)->lock_user_location) 151 if (!((E_Client *)(void *)obj)->lock_user_location)
152 e_client_act_move_keyboard((E_Client *)obj); 152 e_client_act_move_keyboard((E_Client *)(void *)obj);
153} 153}
154 154
155/***************************************************************************/ 155/***************************************************************************/
@@ -158,8 +158,8 @@ ACT_FN_GO(window_resize, EINA_UNUSED)
158 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 158 if ((!obj) || (obj->type != E_CLIENT_TYPE))
159 obj = E_OBJECT(e_client_focused_get()); 159 obj = E_OBJECT(e_client_focused_get());
160 if (!obj) return; 160 if (!obj) return;
161 if (!((E_Client *)obj)->lock_user_size) 161 if (!((E_Client *)(void *)obj)->lock_user_size)
162 e_client_act_resize_begin((E_Client *)obj, NULL); 162 e_client_act_resize_begin((E_Client *)(void *)obj, NULL);
163} 163}
164 164
165ACT_FN_GO_MOUSE(window_resize, EINA_UNUSED) 165ACT_FN_GO_MOUSE(window_resize, EINA_UNUSED)
@@ -167,8 +167,8 @@ ACT_FN_GO_MOUSE(window_resize, EINA_UNUSED)
167 if (!obj) obj = E_OBJECT(e_client_focused_get()); 167 if (!obj) obj = E_OBJECT(e_client_focused_get());
168 if (!obj) return EINA_FALSE; 168 if (!obj) return EINA_FALSE;
169 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE; 169 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE;
170 if (!((E_Client *)obj)->lock_user_size) 170 if (!((E_Client *)(void *)obj)->lock_user_size)
171 e_client_act_resize_begin((E_Client *)obj, ev); 171 e_client_act_resize_begin((E_Client *)(void *)obj, ev);
172 return EINA_TRUE; 172 return EINA_TRUE;
173} 173}
174 174
@@ -177,17 +177,17 @@ ACT_FN_GO_SIGNAL(window_resize, )
177 if (!obj) obj = E_OBJECT(e_client_focused_get()); 177 if (!obj) obj = E_OBJECT(e_client_focused_get());
178 if (!obj) return; 178 if (!obj) return;
179 if (obj->type != E_CLIENT_TYPE) return; 179 if (obj->type != E_CLIENT_TYPE) return;
180 if (!((E_Client *)obj)->lock_user_size) 180 if (!((E_Client *)(void *)obj)->lock_user_size)
181 { 181 {
182 if ((params) && (!strcmp(params, "end"))) 182 if ((params) && (!strcmp(params, "end")))
183 e_client_signal_resize_end((E_Client *)obj, params, sig, src); 183 e_client_signal_resize_end((E_Client *)(void *)obj, params, sig, src);
184 else 184 else
185 { 185 {
186 if (!params) params = ""; 186 if (!params) params = "";
187 if (e_client_util_resizing_get((E_Client *)obj)) 187 if (e_client_util_resizing_get((E_Client *)(void *)obj))
188 e_client_signal_resize_end((E_Client *)obj, params, sig, src); 188 e_client_signal_resize_end((E_Client *)(void *)obj, params, sig, src);
189 else 189 else
190 e_client_signal_resize_begin((E_Client *)obj, params, sig, src); 190 e_client_signal_resize_begin((E_Client *)(void *)obj, params, sig, src);
191 } 191 }
192 } 192 }
193} 193}
@@ -197,7 +197,7 @@ ACT_FN_END(window_resize, EINA_UNUSED)
197 if (!obj) obj = E_OBJECT(e_client_focused_get()); 197 if (!obj) obj = E_OBJECT(e_client_focused_get());
198 if (!obj) return; 198 if (!obj) return;
199 if (obj->type != E_CLIENT_TYPE) return; 199 if (obj->type != E_CLIENT_TYPE) return;
200 e_client_act_resize_end((E_Client *)obj, NULL); 200 e_client_act_resize_end((E_Client *)(void *)obj, NULL);
201} 201}
202 202
203ACT_FN_END_MOUSE(window_resize, EINA_UNUSED) 203ACT_FN_END_MOUSE(window_resize, EINA_UNUSED)
@@ -205,7 +205,7 @@ ACT_FN_END_MOUSE(window_resize, EINA_UNUSED)
205 if (!obj) obj = E_OBJECT(e_client_focused_get()); 205 if (!obj) obj = E_OBJECT(e_client_focused_get());
206 if (!obj) return EINA_FALSE; 206 if (!obj) return EINA_FALSE;
207 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE; 207 if (obj->type != E_CLIENT_TYPE) return EINA_FALSE;
208 e_client_act_resize_end((E_Client *)obj, ev); 208 e_client_act_resize_end((E_Client *)(void *)obj, ev);
209 return EINA_TRUE; 209 return EINA_TRUE;
210} 210}
211 211
@@ -218,8 +218,8 @@ ACT_FN_GO_KEY(window_resize, EINA_UNUSED, EINA_UNUSED)
218 obj = E_OBJECT(e_client_focused_get()); 218 obj = E_OBJECT(e_client_focused_get());
219 if (!obj) return; 219 if (!obj) return;
220 } 220 }
221 if (!((E_Client *)obj)->lock_user_size) 221 if (!((E_Client *)(void *)obj)->lock_user_size)
222 e_client_act_resize_keyboard((E_Client *)obj); 222 e_client_act_resize_keyboard((E_Client *)(void *)obj);
223} 223}
224 224
225/***************************************************************************/ 225/***************************************************************************/
@@ -228,7 +228,7 @@ ACT_FN_GO(window_menu, EINA_UNUSED)
228 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 228 if ((!obj) || (obj->type != E_CLIENT_TYPE))
229 obj = E_OBJECT(e_client_focused_get()); 229 obj = E_OBJECT(e_client_focused_get());
230 if (!obj) return; 230 if (!obj) return;
231 e_client_act_menu_begin((E_Client *)obj, NULL, 0); 231 e_client_act_menu_begin((E_Client *)(void *)obj, NULL, 0);
232} 232}
233 233
234ACT_FN_GO_MOUSE(window_menu, EINA_UNUSED) 234ACT_FN_GO_MOUSE(window_menu, EINA_UNUSED)
@@ -240,7 +240,7 @@ ACT_FN_GO_MOUSE(window_menu, EINA_UNUSED)
240 obj = E_OBJECT(e_client_focused_get()); 240 obj = E_OBJECT(e_client_focused_get());
241 if (!obj) return EINA_FALSE; 241 if (!obj) return EINA_FALSE;
242 } 242 }
243 e_client_act_menu_begin((E_Client *)obj, ev, 0); 243 e_client_act_menu_begin((E_Client *)(void *)obj, ev, 0);
244 return EINA_TRUE; 244 return EINA_TRUE;
245} 245}
246 246
@@ -253,7 +253,7 @@ ACT_FN_GO_KEY(window_menu, EINA_UNUSED, EINA_UNUSED)
253 obj = E_OBJECT(e_client_focused_get()); 253 obj = E_OBJECT(e_client_focused_get());
254 if (!obj) return; 254 if (!obj) return;
255 } 255 }
256 e_client_act_menu_begin((E_Client *)obj, NULL, 1); 256 e_client_act_menu_begin((E_Client *)(void *)obj, NULL, 1);
257} 257}
258 258
259/***************************************************************************/ 259/***************************************************************************/
@@ -262,8 +262,8 @@ ACT_FN_GO(window_raise, EINA_UNUSED)
262 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 262 if ((!obj) || (obj->type != E_CLIENT_TYPE))
263 obj = E_OBJECT(e_client_focused_get()); 263 obj = E_OBJECT(e_client_focused_get());
264 if (!obj) return; 264 if (!obj) return;
265 if (!((E_Client *)obj)->lock_user_stacking) 265 if (!((E_Client *)(void *)obj)->lock_user_stacking)
266 evas_object_raise(((E_Client *)obj)->frame); 266 evas_object_raise(((E_Client *)(void *)obj)->frame);
267} 267}
268 268
269/***************************************************************************/ 269/***************************************************************************/
@@ -272,8 +272,8 @@ ACT_FN_GO(window_lower, EINA_UNUSED)
272 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 272 if ((!obj) || (obj->type != E_CLIENT_TYPE))
273 obj = E_OBJECT(e_client_focused_get()); 273 obj = E_OBJECT(e_client_focused_get());
274 if (!obj) return; 274 if (!obj) return;
275 if (!((E_Client *)obj)->lock_user_stacking) 275 if (!((E_Client *)(void *)obj)->lock_user_stacking)
276 evas_object_lower(((E_Client *)obj)->frame); 276 evas_object_lower(((E_Client *)(void *)obj)->frame);
277} 277}
278 278
279/***************************************************************************/ 279/***************************************************************************/
@@ -282,8 +282,8 @@ ACT_FN_GO(window_close, EINA_UNUSED)
282 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 282 if ((!obj) || (obj->type != E_CLIENT_TYPE))
283 obj = E_OBJECT(e_client_focused_get()); 283 obj = E_OBJECT(e_client_focused_get());
284 if (!obj) return; 284 if (!obj) return;
285 if (!((E_Client *)obj)->lock_close) 285 if (!((E_Client *)(void *)obj)->lock_close)
286 e_client_act_close_begin((E_Client *)obj); 286 e_client_act_close_begin((E_Client *)(void *)obj);
287} 287}
288 288
289/***************************************************************************/ 289/***************************************************************************/
@@ -300,8 +300,8 @@ _e_actions_cb_kill_dialog_ok(void *data, E_Dialog *dia)
300 e_object_del(E_OBJECT(kill_dialog)); 300 e_object_del(E_OBJECT(kill_dialog));
301 kill_dialog = NULL; 301 kill_dialog = NULL;
302 } 302 }
303 if ((!((E_Client *)obj)->lock_close) && (!((E_Client *)obj)->internal)) 303 if ((!((E_Client *)(void *)obj)->lock_close) && (!((E_Client *)(void *)obj)->internal))
304 e_client_act_kill_begin((E_Client *)obj); 304 e_client_act_kill_begin((E_Client *)(void *)obj);
305} 305}
306 306
307static void 307static void
@@ -325,7 +325,7 @@ ACT_FN_GO(window_kill, EINA_UNUSED)
325 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 325 if ((!obj) || (obj->type != E_CLIENT_TYPE))
326 obj = E_OBJECT(e_client_focused_get()); 326 obj = E_OBJECT(e_client_focused_get());
327 if (!obj) return; 327 if (!obj) return;
328 ec = (E_Client *)obj; 328 ec = (E_Client *)(void *)obj;
329 if ((ec->lock_close) || (ec->internal)) return; 329 if ((ec->lock_close) || (ec->internal)) return;
330 330
331 if (kill_dialog) e_object_del(E_OBJECT(kill_dialog)); 331 if (kill_dialog) e_object_del(E_OBJECT(kill_dialog));
@@ -367,11 +367,11 @@ ACT_FN_GO(window_sticky_toggle, EINA_UNUSED)
367 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 367 if ((!obj) || (obj->type != E_CLIENT_TYPE))
368 obj = E_OBJECT(e_client_focused_get()); 368 obj = E_OBJECT(e_client_focused_get());
369 if (!obj) return; 369 if (!obj) return;
370 if (!((E_Client *)obj)->lock_user_sticky) 370 if (!((E_Client *)(void *)obj)->lock_user_sticky)
371 { 371 {
372 E_Client *ec; 372 E_Client *ec;
373 373
374 ec = (E_Client *)obj; 374 ec = (E_Client *)(void *)obj;
375 if (ec->sticky) e_client_unstick(ec); 375 if (ec->sticky) e_client_unstick(ec);
376 else e_client_stick(ec); 376 else e_client_stick(ec);
377 } 377 }
@@ -383,11 +383,11 @@ ACT_FN_GO(window_sticky, )
383 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 383 if ((!obj) || (obj->type != E_CLIENT_TYPE))
384 obj = E_OBJECT(e_client_focused_get()); 384 obj = E_OBJECT(e_client_focused_get());
385 if (!obj) return; 385 if (!obj) return;
386 if (!((E_Client *)obj)->lock_user_sticky) 386 if (!((E_Client *)(void *)obj)->lock_user_sticky)
387 { 387 {
388 E_Client *ec; 388 E_Client *ec;
389 389
390 ec = (E_Client *)obj; 390 ec = (E_Client *)(void *)obj;
391 if (params) 391 if (params)
392 { 392 {
393 if (atoi(params) == 1) 393 if (atoi(params) == 1)
@@ -406,7 +406,7 @@ ACT_FN_GO(window_iconic_toggle, EINA_UNUSED)
406 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 406 if ((!obj) || (obj->type != E_CLIENT_TYPE))
407 obj = E_OBJECT(e_client_focused_get()); 407 obj = E_OBJECT(e_client_focused_get());
408 if (!obj) return; 408 if (!obj) return;
409 ec = (E_Client *)obj; 409 ec = (E_Client *)(void *)obj;
410 410
411 if ((!ec->lock_user_iconify) && (!ec->fullscreen) && 411 if ((!ec->lock_user_iconify) && (!ec->fullscreen) &&
412 ((ec->netwm.type == E_WINDOW_TYPE_NORMAL) || 412 ((ec->netwm.type == E_WINDOW_TYPE_NORMAL) ||
@@ -423,11 +423,11 @@ ACT_FN_GO(window_iconic, )
423 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 423 if ((!obj) || (obj->type != E_CLIENT_TYPE))
424 obj = E_OBJECT(e_client_focused_get()); 424 obj = E_OBJECT(e_client_focused_get());
425 if (!obj) return; 425 if (!obj) return;
426 if (!((E_Client *)obj)->lock_user_iconify) 426 if (!((E_Client *)(void *)obj)->lock_user_iconify)
427 { 427 {
428 E_Client *ec; 428 E_Client *ec;
429 429
430 ec = (E_Client *)obj; 430 ec = (E_Client *)(void *)obj;
431 if (params) 431 if (params)
432 { 432 {
433 if (atoi(params) == 1) 433 if (atoi(params) == 1)
@@ -444,11 +444,11 @@ ACT_FN_GO(window_fullscreen_toggle, )
444 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 444 if ((!obj) || (obj->type != E_CLIENT_TYPE))
445 obj = E_OBJECT(e_client_focused_get()); 445 obj = E_OBJECT(e_client_focused_get());
446 if (!obj) return; 446 if (!obj) return;
447 if (!((E_Client *)obj)->lock_user_fullscreen) 447 if (!((E_Client *)(void *)obj)->lock_user_fullscreen)
448 { 448 {
449 E_Client *ec; 449 E_Client *ec;
450 450
451 ec = (E_Client *)obj; 451 ec = (E_Client *)(void *)obj;
452 if (ec->fullscreen) 452 if (ec->fullscreen)
453 e_client_unfullscreen(ec); 453 e_client_unfullscreen(ec);
454 else if (!params || *params == '\0') 454 else if (!params || *params == '\0')
@@ -466,11 +466,11 @@ ACT_FN_GO(window_fullscreen, )
466 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 466 if ((!obj) || (obj->type != E_CLIENT_TYPE))
467 obj = E_OBJECT(e_client_focused_get()); 467 obj = E_OBJECT(e_client_focused_get());
468 if (!obj) return; 468 if (!obj) return;
469 if (!((E_Client *)obj)->lock_user_fullscreen) 469 if (!((E_Client *)(void *)obj)->lock_user_fullscreen)
470 { 470 {
471 E_Client *ec; 471 E_Client *ec;
472 472
473 ec = (E_Client *)obj; 473 ec = (E_Client *)(void *)obj;
474 if (params) 474 if (params)
475 { 475 {
476 int v; 476 int v;
@@ -504,7 +504,7 @@ ACT_FN_GO(window_maximized_toggle, )
504 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 504 if ((!obj) || (obj->type != E_CLIENT_TYPE))
505 obj = E_OBJECT(e_client_focused_get()); 505 obj = E_OBJECT(e_client_focused_get());
506 if (!obj) return; 506 if (!obj) return;
507 ec = (E_Client *)obj; 507 ec = (E_Client *)(void *)obj;
508 508
509 /* internal dialog which is resizable */ 509 /* internal dialog which is resizable */
510 if (ec->internal && (ec->netwm.type == E_WINDOW_TYPE_DIALOG)) 510 if (ec->internal && (ec->netwm.type == E_WINDOW_TYPE_DIALOG))
@@ -568,11 +568,11 @@ ACT_FN_GO(window_maximized, )
568 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 568 if ((!obj) || (obj->type != E_CLIENT_TYPE))
569 obj = E_OBJECT(e_client_focused_get()); 569 obj = E_OBJECT(e_client_focused_get());
570 if (!obj) return; 570 if (!obj) return;
571 if (!((E_Client *)obj)->lock_user_maximize) 571 if (!((E_Client *)(void *)obj)->lock_user_maximize)
572 { 572 {
573 E_Client *ec; 573 E_Client *ec;
574 574
575 ec = (E_Client *)obj; 575 ec = (E_Client *)(void *)obj;
576 if (params) 576 if (params)
577 { 577 {
578 E_Maximize max; 578 E_Maximize max;
@@ -622,11 +622,11 @@ ACT_FN_GO(window_shaded_toggle, )
622 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 622 if ((!obj) || (obj->type != E_CLIENT_TYPE))
623 obj = E_OBJECT(e_client_focused_get()); 623 obj = E_OBJECT(e_client_focused_get());
624 if (!obj) return; 624 if (!obj) return;
625 if (!((E_Client *)obj)->lock_user_shade) 625 if (!((E_Client *)(void *)obj)->lock_user_shade)
626 { 626 {
627 E_Client *ec; 627 E_Client *ec;
628 628
629 ec = (E_Client *)obj; 629 ec = (E_Client *)(void *)obj;
630 if (ec->shaded) 630 if (ec->shaded)
631 { 631 {
632 if (!params) 632 if (!params)
@@ -672,11 +672,11 @@ ACT_FN_GO(window_shaded, )
672 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 672 if ((!obj) || (obj->type != E_CLIENT_TYPE))
673 obj = E_OBJECT(e_client_focused_get()); 673 obj = E_OBJECT(e_client_focused_get());
674 if (!obj) return; 674 if (!obj) return;
675 if (!((E_Client *)obj)->lock_user_shade) 675 if (!((E_Client *)(void *)obj)->lock_user_shade)
676 { 676 {
677 E_Client *ec; 677 E_Client *ec;
678 678
679 ec = (E_Client *)obj; 679 ec = (E_Client *)(void *)obj;
680 if (!e_comp_object_frame_allowed(ec->frame)) return; 680 if (!e_comp_object_frame_allowed(ec->frame)) return;
681 if (params) 681 if (params)
682 { 682 {
@@ -718,11 +718,11 @@ ACT_FN_GO(window_borderless_toggle, EINA_UNUSED)
718 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 718 if ((!obj) || (obj->type != E_CLIENT_TYPE))
719 obj = E_OBJECT(e_client_focused_get()); 719 obj = E_OBJECT(e_client_focused_get());
720 if (!obj) return; 720 if (!obj) return;
721 if (!((E_Client *)obj)->lock_border) 721 if (!((E_Client *)(void *)obj)->lock_border)
722 { 722 {
723 E_Client *ec; 723 E_Client *ec;
724 724
725 ec = (E_Client *)obj; 725 ec = (E_Client *)(void *)obj;
726 if (!e_comp_object_frame_allowed(ec->frame)) return; 726 if (!e_comp_object_frame_allowed(ec->frame)) return;
727 ec->borderless = !ec->borderless; 727 ec->borderless = !ec->borderless;
728 728
@@ -737,11 +737,11 @@ ACT_FN_GO(window_border_set, EINA_UNUSED)
737 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 737 if ((!obj) || (obj->type != E_CLIENT_TYPE))
738 obj = E_OBJECT(e_client_focused_get()); 738 obj = E_OBJECT(e_client_focused_get());
739 if (!obj) return; 739 if (!obj) return;
740 if (!((E_Client *)obj)->lock_border) 740 if (!((E_Client *)(void *)obj)->lock_border)
741 { 741 {
742 E_Client *ec; 742 E_Client *ec;
743 743
744 ec = (E_Client *)obj; 744 ec = (E_Client *)(void *)obj;
745 if (!e_comp_object_frame_allowed(ec->frame)) return; 745 if (!e_comp_object_frame_allowed(ec->frame)) return;
746 if (ec && params) 746 if (ec && params)
747 { 747 {
@@ -758,11 +758,11 @@ ACT_FN_GO(window_border_cycle, EINA_UNUSED)
758 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 758 if ((!obj) || (obj->type != E_CLIENT_TYPE))
759 obj = E_OBJECT(e_client_focused_get()); 759 obj = E_OBJECT(e_client_focused_get());
760 if (!obj) return; 760 if (!obj) return;
761 if (!((E_Client *)obj)->lock_border) 761 if (!((E_Client *)(void *)obj)->lock_border)
762 { 762 {
763 E_Client *ec; 763 E_Client *ec;
764 764
765 ec = (E_Client *)obj; 765 ec = (E_Client *)(void *)obj;
766 if (!e_comp_object_frame_allowed(ec->frame)) return; 766 if (!e_comp_object_frame_allowed(ec->frame)) return;
767 if (ec && params) 767 if (ec && params)
768 { 768 {
@@ -817,11 +817,11 @@ ACT_FN_GO(window_pinned_toggle, EINA_UNUSED)
817 if ((!obj) || (obj->type != E_CLIENT_TYPE)) 817 if ((!obj) || (obj->type != E_CLIENT_TYPE))
818 obj = E_OBJECT(e_client_focused_get()); 818 obj = E_OBJECT(e_client_focused_get());
819 if (!obj) return; 819 if (!obj) return;
820 if (!((E_Client *)obj)->lock_border) 820 if (!((E_Client *)(void *)obj)->lock_border)
821 { 821 {
822 E_Client *ec; 822 E_Client *ec;
823 823
824 ec = (E_Client *)obj; 824 ec = (E_Client *)(void *)obj;
825 if ((ec->netwm.state.stacking == E_STACKING_BELOW) && 825 if ((ec->netwm.state.stacking == E_STACKING_BELOW) &&
826 (ec->user_skip_winlist) && (ec->borderless)) 826 (ec->user_skip_winlist) && (ec->borderless))
827 e_client_pinned_set(ec, 0); 827 e_client_pinned_set(ec, 0);
@@ -848,7 +848,7 @@ ACT_FN_GO(window_move_by, )
848 { 848 {
849 E_Client *ec; 849 E_Client *ec;
850 850
851 ec = (E_Client *)obj; 851 ec = (E_Client *)(void *)obj;
852 evas_object_move(ec->frame, ec->x + dx, ec->y + dy); 852 evas_object_move(ec->frame, ec->x + dx, ec->y + dy);
853 853
854 e_util_pointer_center(ec); 854 e_util_pointer_center(ec);
@@ -868,7 +868,7 @@ ACT_FN_GO(window_move_to, )
868 int x, y, zx, zy, zw, zh; 868 int x, y, zx, zy, zw, zh;
869 char cx, cy; 869 char cx, cy;
870 870
871 ec = (E_Client *)obj; 871 ec = (E_Client *)(void *)obj;
872 e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh); 872 e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
873 873
874 if (sscanf(params, "%c%i %c%i", &cx, &x, &cy, &y) == 4) 874 if (sscanf(params, "%c%i %c%i", &cx, &x, &cy, &y) == 4)
@@ -915,7 +915,7 @@ ACT_FN_GO(window_quick_tile_to_quadrant, )
915 915
916 if (!obj) return; 916 if (!obj) return;
917 917
918 ec = (E_Client *)obj; 918 ec = (E_Client *)(void *)obj;
919 if((ec->maximized & E_MAXIMIZE_TYPE) != E_MAXIMIZE_NONE) 919 if((ec->maximized & E_MAXIMIZE_TYPE) != E_MAXIMIZE_NONE)
920 e_client_unmaximize(ec, E_MAXIMIZE_BOTH); 920 e_client_unmaximize(ec, E_MAXIMIZE_BOTH);
921 e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh); 921 e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
@@ -959,7 +959,7 @@ ACT_FN_GO(window_move_to_center, EINA_UNUSED)
959 obj = E_OBJECT(e_client_focused_get()); 959 obj = E_OBJECT(e_client_focused_get());
960 if (!obj) return; 960 if (!obj) return;
961 961
962 ec = (E_Client *)obj; 962 ec = (E_Client *)(void *)obj;
963 e_comp_object_util_center(ec->frame); 963 e_comp_object_util_center(ec->frame);
964 964
965 e_util_pointer_center(ec); 965 e_util_pointer_center(ec);
@@ -980,7 +980,7 @@ ACT_FN_GO(window_resize_by, )
980 { 980 {
981 E_Client *ec; 981 E_Client *ec;
982 982
983 ec = (E_Client *)obj; 983 ec = (E_Client *)(void *)obj;
984 984
985 dw += ec->w; 985 dw += ec->w;
986 dh += ec->h; 986 dh += ec->h;
@@ -1049,7 +1049,7 @@ ACT_FN_GO(window_push, )
1049 else 1049 else
1050 return; 1050 return;
1051 1051
1052 ec = (E_Client *)obj; 1052 ec = (E_Client *)(void *)obj;
1053 e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh); 1053 e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
1054 1054
1055 if (hdir < 0) x = zx; 1055 if (hdir < 0) x = zx;
@@ -1186,7 +1186,7 @@ ACT_FN_GO(window_drag_icon, EINA_UNUSED)
1186 { 1186 {
1187 E_Client *ec; 1187 E_Client *ec;
1188 1188
1189 ec = (E_Client *)obj; 1189 ec = (E_Client *)(void *)obj;
1190 ec->drag.start = 1; 1190 ec->drag.start = 1;
1191 ec->drag.x = -1; 1191 ec->drag.x = -1;
1192 ec->drag.y = -1; 1192 ec->drag.y = -1;
@@ -1206,7 +1206,7 @@ ACT_FN_GO(window_desk_move_by, )
1206 obj = E_OBJECT(e_client_action_get()); 1206 obj = E_OBJECT(e_client_action_get());
1207 if (!obj) return; 1207 if (!obj) return;
1208 1208
1209 ec = (E_Client *)obj; 1209 ec = (E_Client *)(void *)obj;
1210 if ((!ec->zone) || (!ec->desk)) return; 1210 if ((!ec->zone) || (!ec->desk)) return;
1211 if (sscanf(params, "%d %d", &x, &y) == 2) 1211 if (sscanf(params, "%d %d", &x, &y) == 2)
1212 { 1212 {
@@ -1268,7 +1268,7 @@ ACT_FN_GO(window_zone_move_by, )
1268 obj = E_OBJECT(e_client_action_get()); 1268 obj = E_OBJECT(e_client_action_get());
1269 if (!obj) return; 1269 if (!obj) return;
1270 1270
1271 ec = (E_Client *)obj; 1271 ec = (E_Client *)(void *)obj;
1272 /* bad */ 1272 /* bad */
1273 if (!ec->zone) return; 1273 if (!ec->zone) return;
1274 /* only one screen */ 1274 /* only one screen */
@@ -1308,7 +1308,7 @@ ACT_FN_GO(window_desk_move_to, )
1308 obj = E_OBJECT(e_client_action_get()); 1308 obj = E_OBJECT(e_client_action_get());
1309 if (!obj) return; 1309 if (!obj) return;
1310 1310
1311 ec = (E_Client *)obj; 1311 ec = (E_Client *)(void *)obj;
1312 if ((!ec->zone) || (!ec->desk)) return; 1312 if ((!ec->zone) || (!ec->desk)) return;
1313 if (sscanf(params, "%d %d", &x, &y) == 2) 1313 if (sscanf(params, "%d %d", &x, &y) == 2)
1314 { 1314 {
@@ -1328,9 +1328,9 @@ _e_actions_zone_get(E_Object *obj)
1328 if (obj->type == (int)E_COMP_TYPE) 1328 if (obj->type == (int)E_COMP_TYPE)
1329 return e_zone_current_get(); 1329 return e_zone_current_get();
1330 else if (obj->type == (int)E_ZONE_TYPE) 1330 else if (obj->type == (int)E_ZONE_TYPE)
1331 return (E_Zone *)obj; 1331 return (void *)obj;
1332 else if (obj->type == (int)E_CLIENT_TYPE) 1332 else if (obj->type == (int)E_CLIENT_TYPE)
1333 return ((E_Client *)obj)->zone; 1333 return ((E_Client *)(void *)obj)->zone;
1334 else if (obj->type == (int)E_SHELF_TYPE) 1334 else if (obj->type == (int)E_SHELF_TYPE)
1335 return ((E_Shelf *)obj)->zone; 1335 return ((E_Shelf *)obj)->zone;
1336 else if (e_obj_is_win(obj)) 1336 else if (e_obj_is_win(obj))
@@ -1980,7 +1980,7 @@ ACT_FN_GO(app_new_instance, EINA_UNUSED)
1980 obj = E_OBJECT(e_client_focused_get()); 1980 obj = E_OBJECT(e_client_focused_get());
1981 if (!obj) return; 1981 if (!obj) return;
1982 } 1982 }
1983 ec = (E_Client *)obj; 1983 ec = (E_Client *)(void *)obj;
1984 1984
1985 if (ec->desktop) 1985 if (ec->desktop)
1986 e_exec(zone, ec->desktop, NULL, NULL, "action/app"); 1986 e_exec(zone, ec->desktop, NULL, NULL, "action/app");
@@ -2436,7 +2436,7 @@ ACT_FN_GO(pointer_resize_push, )
2436 { 2436 {
2437 E_Client *ec; 2437 E_Client *ec;
2438 2438
2439 ec = (E_Client *)obj; 2439 ec = (E_Client *)(void *)obj;
2440 if ((ec->lock_user_size) || (ec->shaded) || (ec->shading) || 2440 if ((ec->lock_user_size) || (ec->shaded) || (ec->shading) ||
2441 (ec->fullscreen) || ((ec->maximized) && (!e_config->allow_manip))) 2441 (ec->fullscreen) || ((ec->maximized) && (!e_config->allow_manip)))
2442 return; 2442 return;
@@ -2452,7 +2452,7 @@ ACT_FN_GO(pointer_resize_pop, )
2452 { 2452 {
2453 E_Client *ec; 2453 E_Client *ec;
2454 2454
2455 ec = (E_Client *)obj; 2455 ec = (E_Client *)(void *)obj;
2456 if ((ec->lock_user_size) || (ec->shaded) || (ec->shading) || 2456 if ((ec->lock_user_size) || (ec->shaded) || (ec->shading) ||
2457 (ec->fullscreen) || ((ec->maximized) && (!e_config->allow_manip))) 2457 (ec->fullscreen) || ((ec->maximized) && (!e_config->allow_manip)))
2458 return; 2458 return;
diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c
index 20ed64bf9..28b855563 100644
--- a/src/bin/e_dnd.c
+++ b/src/bin/e_dnd.c
@@ -670,7 +670,7 @@ _e_drag_coords_update(const E_Drop_Handler *h, int *dx, int *dy)
670 break; 670 break;
671 671
672 case E_GADCON_CLIENT_TYPE: 672 case E_GADCON_CLIENT_TYPE:
673 gc = ((E_Gadcon_Client *)(h->obj))->gadcon; 673 gc = ((E_Gadcon_Client *)(void *)(h->obj))->gadcon;
674 e_gadcon_canvas_zone_geometry_get(gc, &px, &py, NULL, NULL); 674 e_gadcon_canvas_zone_geometry_get(gc, &px, &py, NULL, NULL);
675 if (!gc->toolbar) break; 675 if (!gc->toolbar) break;
676 { 676 {
@@ -689,8 +689,8 @@ _e_drag_coords_update(const E_Drop_Handler *h, int *dx, int *dy)
689 break; 689 break;
690 690
691 case E_CLIENT_TYPE: 691 case E_CLIENT_TYPE:
692 px = ((E_Client *)(h->obj))->x; 692 px = ((E_Client *)(void *)(h->obj))->x;
693 py = ((E_Client *)(h->obj))->y; 693 py = ((E_Client *)(void *)(h->obj))->y;
694 break; 694 break;
695 695
696 /* FIXME: add more types as needed */ 696 /* FIXME: add more types as needed */
@@ -716,7 +716,7 @@ _e_drag_win_get(const E_Drop_Handler *h, int xdnd)
716 switch (h->obj->type) 716 switch (h->obj->type)
717 { 717 {
718 case E_GADCON_CLIENT_TYPE: 718 case E_GADCON_CLIENT_TYPE:
719 gc = ((E_Gadcon_Client *)(h->obj))->gadcon; 719 gc = ((E_Gadcon_Client *)(void *)(h->obj))->gadcon;
720 if (!gc) return 0; 720 if (!gc) return 0;
721 /* no break */ 721 /* no break */
722 case E_GADCON_TYPE: 722 case E_GADCON_TYPE:
@@ -768,7 +768,7 @@ _e_drag_win_show(E_Drop_Handler *h)
768 break; 768 break;
769 769
770 case E_GADCON_CLIENT_TYPE: 770 case E_GADCON_CLIENT_TYPE:
771 shelf = e_gadcon_shelf_get(((E_Gadcon_Client *)(h->obj))->gadcon); 771 shelf = e_gadcon_shelf_get(((E_Gadcon_Client *)(void *)(h->obj))->gadcon);
772 if (shelf) e_shelf_toggle(shelf, 1); 772 if (shelf) e_shelf_toggle(shelf, 1);
773 break; 773 break;
774 774
@@ -795,7 +795,7 @@ _e_drag_win_hide(E_Drop_Handler *h)
795 break; 795 break;
796 796
797 case E_GADCON_CLIENT_TYPE: 797 case E_GADCON_CLIENT_TYPE:
798 shelf = e_gadcon_shelf_get(((E_Gadcon_Client *)(h->obj))->gadcon); 798 shelf = e_gadcon_shelf_get(((E_Gadcon_Client *)(void *)(h->obj))->gadcon);
799 if (shelf) e_shelf_toggle(shelf, 0); 799 if (shelf) e_shelf_toggle(shelf, 0);
800 break; 800 break;
801 801
diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c
index e9346c510..ec50fd2ca 100644
--- a/src/bin/e_zone.c
+++ b/src/bin/e_zone.c
@@ -1398,13 +1398,13 @@ e_zone_obstacle_modify(E_Zone_Obstacle *obs, Eina_Rectangle *geom, Eina_Bool ver
1398 1398
1399 if (obs->owner->type == E_DESK_TYPE) 1399 if (obs->owner->type == E_DESK_TYPE)
1400 { 1400 {
1401 desk = (E_Desk*)obs->owner; 1401 desk = (void *)obs->owner;
1402 if (desk->visible) 1402 if (desk->visible)
1403 e_zone_useful_geometry_dirty(desk->zone); 1403 e_zone_useful_geometry_dirty(desk->zone);
1404 } 1404 }
1405 else 1405 else
1406 { 1406 {
1407 zone = (E_Zone*)obs->owner; 1407 zone = (void *)obs->owner;
1408 e_zone_useful_geometry_dirty(zone); 1408 e_zone_useful_geometry_dirty(zone);
1409 } 1409 }
1410} 1410}
@@ -1696,14 +1696,14 @@ _e_zone_obstacle_free(E_Zone_Obstacle *obs)
1696 1696
1697 if (obs->owner->type == E_DESK_TYPE) 1697 if (obs->owner->type == E_DESK_TYPE)
1698 { 1698 {
1699 desk = (E_Desk*)obs->owner; 1699 desk = (void *)obs->owner;
1700 desk->obstacles = eina_inlist_remove(desk->obstacles, EINA_INLIST_GET(obs)); 1700 desk->obstacles = eina_inlist_remove(desk->obstacles, EINA_INLIST_GET(obs));
1701 if (desk->visible) 1701 if (desk->visible)
1702 e_zone_useful_geometry_dirty(desk->zone); 1702 e_zone_useful_geometry_dirty(desk->zone);
1703 } 1703 }
1704 else 1704 else
1705 { 1705 {
1706 zone = (E_Zone*)obs->owner; 1706 zone = (void *)obs->owner;
1707 zone->obstacles = eina_inlist_remove(zone->obstacles, EINA_INLIST_GET(obs)); 1707 zone->obstacles = eina_inlist_remove(zone->obstacles, EINA_INLIST_GET(obs));
1708 e_zone_useful_geometry_dirty(zone); 1708 e_zone_useful_geometry_dirty(zone);
1709 } 1709 }
diff --git a/src/modules/conf/e_mod_main.c b/src/modules/conf/e_mod_main.c
index 88fad12f1..c43def08f 100644
--- a/src/modules/conf/e_mod_main.c
+++ b/src/modules/conf/e_mod_main.c
@@ -373,7 +373,7 @@ _e_mod_action_conf_cb(E_Object *obj, const char *params)
373 if (obj->type == E_COMP_TYPE) 373 if (obj->type == E_COMP_TYPE)
374 zone = e_zone_current_get(); 374 zone = e_zone_current_get();
375 else if (obj->type == E_ZONE_TYPE) 375 else if (obj->type == E_ZONE_TYPE)
376 zone = ((E_Zone *)obj); 376 zone = (void *)obj;
377 else 377 else
378 zone = e_zone_current_get(); 378 zone = e_zone_current_get();
379 } 379 }
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 74bbe8ffd..065a18d21 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -1228,7 +1228,7 @@ _e_mod_action_cb(E_Object *obj, const char *params)
1228 if (obj->type == E_COMP_TYPE) 1228 if (obj->type == E_COMP_TYPE)
1229 zone = e_zone_current_get(); 1229 zone = e_zone_current_get();
1230 else if (obj->type == E_ZONE_TYPE) 1230 else if (obj->type == E_ZONE_TYPE)
1231 zone = ((E_Zone *)obj); 1231 zone = ((void *)obj);
1232 else 1232 else
1233 zone = e_zone_current_get(); 1233 zone = e_zone_current_get();
1234 } 1234 }
diff --git a/src/modules/teamwork/e_mod_tw.c b/src/modules/teamwork/e_mod_tw.c
index 90aa397c1..d84543fcf 100644
--- a/src/modules/teamwork/e_mod_tw.c
+++ b/src/modules/teamwork/e_mod_tw.c
@@ -184,7 +184,7 @@ download_media_complete(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_
184 void **test = ecore_con_url_data_get(ev->url_con); 184 void **test = ecore_con_url_data_get(ev->url_con);
185 185
186 if ((!test) || (*test != tw_mod)) return ECORE_CALLBACK_RENEW; 186 if ((!test) || (*test != tw_mod)) return ECORE_CALLBACK_RENEW;
187 i = (Media*)test; 187 i = (void *)test;
188 if (!i->valid) return ECORE_CALLBACK_DONE; 188 if (!i->valid) return ECORE_CALLBACK_DONE;
189 i->timestamp = (unsigned long long)ecore_time_unix_get(); 189 i->timestamp = (unsigned long long)ecore_time_unix_get();
190 if (tw_media_add(i->addr, i->buf, i->timestamp, i->video) == 1) 190 if (tw_media_add(i->addr, i->buf, i->timestamp, i->video) == 1)
@@ -203,7 +203,7 @@ download_media_data(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Even
203 void **test = ecore_con_url_data_get(ev->url_con); 203 void **test = ecore_con_url_data_get(ev->url_con);
204 204
205 if ((!test) || (*test != tw_mod)) return ECORE_CALLBACK_RENEW; 205 if ((!test) || (*test != tw_mod)) return ECORE_CALLBACK_RENEW;
206 i = (Media*)test; 206 i = (void *)test;
207 if (i->dummy) return ECORE_CALLBACK_DONE; 207 if (i->dummy) return ECORE_CALLBACK_DONE;
208 if (!i->buf) i->buf = eina_binbuf_new(); 208 if (!i->buf) i->buf = eina_binbuf_new();
209 eina_binbuf_append_length(i->buf, ev->data, ev->size); 209 eina_binbuf_append_length(i->buf, ev->data, ev->size);
@@ -220,7 +220,7 @@ download_media_status(void *data EINA_UNUSED, int t EINA_UNUSED, Ecore_Con_Event
220 void **test = ecore_con_url_data_get(ev->url_con); 220 void **test = ecore_con_url_data_get(ev->url_con);
221 221
222 if ((!test) || (*test != tw_mod)) return ECORE_CALLBACK_RENEW; 222 if ((!test) || (*test != tw_mod)) return ECORE_CALLBACK_RENEW;
223 i = (Media*)test; 223 i = (void *)test;
224 224
225 if (i->valid) 225 if (i->valid)
226 { 226 {