evas: less unused warning.

SVN revision: 65963
This commit is contained in:
Cedric BAIL 2011-12-06 16:08:30 +00:00
parent dfe1ef0fc6
commit b7a86e79e0
2 changed files with 4 additions and 1 deletions

View File

@ -1296,6 +1296,7 @@ evas_cache_image_preload_cancel(Image_Entry *im, const void *target)
_evas_cache_image_entry_preload_remove(im, target);
#else
(void)im;
(void)target;
#endif
}

View File

@ -225,6 +225,7 @@ evas_preload_thread_run(void (*func_heavy) (void *data),
If no thread and as we don't want to break app that rely on this
facility, we will lock the interface until we are done.
*/
(void)func_cancel;
func_heavy((void *)data);
func_end((void *)data);
return (void *)1;
@ -253,12 +254,13 @@ evas_preload_thread_cancel(Evas_Preload_Pthread *thread)
}
}
LKU(_mutex);
/* Delay the destruction */
work = (Evas_Preload_Pthread_Worker *)thread;
work->cancel = EINA_TRUE;
return EINA_FALSE;
#else
(void) thread;
return EINA_TRUE;
#endif
}