add comments to suppress false positives in intentional switch fallthroughs

CIDs 1155283, 1155282, 1155281
This commit is contained in:
Mike Blumenkrantz 2014-03-13 12:18:21 -04:00
parent 9db01b9cbf
commit 450d6cf321
2 changed files with 4 additions and 0 deletions

View File

@ -1514,10 +1514,12 @@ e_comp_get(const void *o)
gp = (E_Gadcon_Popup*)obj;
obj = (void*)gp->gcc;
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
/* no break */
case E_GADCON_CLIENT_TYPE:
gcc = (E_Gadcon_Client*)obj;
obj = (void*)gcc->gadcon;
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
/* no break */
case E_GADCON_TYPE:
gc = (E_Gadcon*)obj;
obj = (void*)e_gadcon_zone_get(gc);
@ -1703,6 +1705,7 @@ e_comp_e_object_layer_get(const E_Object *obj)
case E_GADCON_CLIENT_TYPE:
gc = ((E_Gadcon_Client *)(obj))->gadcon;
EINA_SAFETY_ON_NULL_RETURN_VAL(gc, 0);
/* no break */
case E_GADCON_TYPE:
if (!gc) gc = (E_Gadcon *)obj;
if (gc->shelf) return gc->shelf->layer;

View File

@ -697,6 +697,7 @@ _e_drag_win_get(const E_Drop_Handler *h, int xdnd)
case E_GADCON_CLIENT_TYPE:
gc = ((E_Gadcon_Client *)(h->obj))->gadcon;
if (!gc) return 0;
/* no break */
case E_GADCON_TYPE:
if (!gc) gc = (E_Gadcon *)h->obj;