cleanup llvm warnings by michael bouchaud.

By: michael bouchaud.


SVN revision: 41024
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-13 00:04:25 +00:00
parent 3d720628ce
commit 3e04e9ec3f
4 changed files with 1 additions and 29 deletions

View File

@ -238,7 +238,7 @@ evas_event_feed_mouse_down(Evas *e, int b, Evas_Button_Flags flags, unsigned int
evas_object_event_callback_call(obj, EVAS_CALLBACK_MOUSE_DOWN, &ev);
if (e->delete_me) break;
}
if (copy) copy = eina_list_free(copy);
if (copy) eina_list_free(copy);
e->last_mouse_down_counter++;
_evas_unwalk(e);
}

View File

@ -153,10 +153,7 @@ evas_object_rectangle_free(Evas_Object *obj)
static void
evas_object_rectangle_render(Evas_Object *obj, void *output, void *context, void *surface, int x, int y)
{
Evas_Object_Rectangle *o;
/* render object to surface with context, and offxet by x,y */
o = (Evas_Object_Rectangle *)(obj->object_data);
obj->layer->evas->engine.func->context_color_set(output,
context,
obj->cur.cache.clip.r,
@ -183,7 +180,6 @@ evas_object_rectangle_render(Evas_Object *obj, void *output, void *context, void
static void
evas_object_rectangle_render_pre(Evas_Object *obj)
{
Evas_Object_Rectangle *o;
int is_v, was_v;
/* dont pre-render the obj twice! */
@ -194,7 +190,6 @@ evas_object_rectangle_render_pre(Evas_Object *obj)
/* elsewhere, decoding video etc. */
/* then when this is done the object needs to figure if it changed and */
/* if so what and where and add the appropriate redraw rectangles */
o = (Evas_Object_Rectangle *)(obj->object_data);
/* if someone is clipping this obj - go calculate the clipper */
if (obj->cur.clipper)
{
@ -283,12 +278,10 @@ evas_object_rectangle_render_pre(Evas_Object *obj)
static void
evas_object_rectangle_render_post(Evas_Object *obj)
{
Evas_Object_Rectangle *o;
/* this moves the current data to the previous state parts of the object */
/* in whatever way is safest for the object. also if we don't need object */
/* data anymore we can free it if the object deems this is a good idea */
o = (Evas_Object_Rectangle *)(obj->object_data);
/* remove those pesky changes */
evas_object_clip_changes_clean(obj);
/* move cur to prev safely for object data */
@ -298,11 +291,8 @@ evas_object_rectangle_render_post(Evas_Object *obj)
static int
evas_object_rectangle_is_opaque(Evas_Object *obj)
{
Evas_Object_Rectangle *o;
/* this returns 1 if the internal object data implies that the object is */
/* currently fully opaque over the entire rectangle it occupies */
o = (Evas_Object_Rectangle *)(obj->object_data);
if (obj->cur.render_op == EVAS_RENDER_COPY)
return 1;
if (obj->cur.render_op != EVAS_RENDER_BLEND)
@ -313,11 +303,8 @@ evas_object_rectangle_is_opaque(Evas_Object *obj)
static int
evas_object_rectangle_was_opaque(Evas_Object *obj)
{
Evas_Object_Rectangle *o;
/* this returns 1 if the internal object data implies that the object was */
/* previously fully opaque over the entire rectangle it occupies */
o = (Evas_Object_Rectangle *)(obj->object_data);
if (obj->prev.render_op == EVAS_RENDER_COPY)
return 1;
if (obj->prev.render_op != EVAS_RENDER_BLEND)
@ -372,46 +359,34 @@ evas_object_rectangle_unstore(Evas_Object *obj)
static int
evas_object_rectangle_is_visible(Evas_Object *obj)
{
Evas_Object_Rectangle *o;
/* this returns 1 if the internal object data would imply that it is */
/* visible (ie drawing it draws something. this is not to do with events */
o = (Evas_Object_Rectangle *)(obj->object_data);
return 1;
}
static int
evas_object_rectangle_was_visible(Evas_Object *obj)
{
Evas_Object_Rectangle *o;
/* this returns 1 if the internal object data would imply that it was */
/* visible (ie drawing it draws something. this is not to do with events */
o = (Evas_Object_Rectangle *)(obj->object_data);
return 1;
}
static int
evas_object_rectangle_is_inside(Evas_Object *obj, double x, double y)
{
Evas_Object_Rectangle *o;
/* this returns 1 if the canvas co-ordinates are inside the object based */
/* on object private data. not much use for rects, but for polys, images */
/* and other complex objects it might be */
o = (Evas_Object_Rectangle *)(obj->object_data);
return 1;
}
static int
evas_object_rectangle_was_inside(Evas_Object *obj, double x, double y)
{
Evas_Object_Rectangle *o;
/* this returns 1 if the canvas co-ordinates were inside the object based */
/* on object private data. not much use for rects, but for polys, images */
/* and other complex objects it might be */
o = (Evas_Object_Rectangle *)(obj->object_data);
return 1;
}
#endif

View File

@ -487,5 +487,4 @@ evas_common_draw_func_copy_get(int pixels, int reverse)
#else
return NULL;
#endif
pixels = 0;
}

View File

@ -268,7 +268,6 @@ _sci_find(RGBA_Image *im,
static void
_cache_prune(Scaleitem *notsci, Evas_Bool copies_only)
{
RGBA_Image *im;
Scaleitem *sci;
while (cache_size > max_cache_size)
{
@ -281,7 +280,6 @@ _cache_prune(Scaleitem *notsci, Evas_Bool copies_only)
if (!sci) return;
}
if (sci == notsci) return;
im = sci->parent_im;
if (sci->im)
{
evas_common_rgba_image_free(&sci->im->cache_entry);