ecore ecore_imf_context.c: Fixed build warnings.

ecore_imf_context.c: In function ‘ecore_imf_context_event_callback_del’:
ecore_imf_context.c:1099:9: warning: ‘return’ with no value, in function returning non-void
ecore_imf_context.c:1109:26: warning: initialization discards qualifiers from pointer target type

SVN revision: 67585
This commit is contained in:
Daniel Juyung Seo 2012-01-29 13:39:07 +00:00
parent 73830721ce
commit 30980e2ecf
1 changed files with 2 additions and 2 deletions

View File

@ -1096,7 +1096,7 @@ ecore_imf_context_event_callback_del(Ecore_IMF_Context *ctx, Ecore_IMF_Callback_
{
ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
"ecore_imf_context_event_callback_del");
return;
return NULL;
}
if (!func) return NULL;
@ -1106,7 +1106,7 @@ ecore_imf_context_event_callback_del(Ecore_IMF_Context *ctx, Ecore_IMF_Callback_
{
if ((fn) && (fn->func == func) && (fn->type == type))
{
void *tmp = fn->data;
void *tmp = (void *)fn->data;
free(fn);
ctx->callbacks = eina_list_remove_list(ctx->callbacks, l);
return tmp;