summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-01-29 13:39:07 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-01-29 13:39:07 +0000
commit30980e2ecf44ac0f4a2861a4dbbf3cf4e41a5dab (patch)
tree7b086f2f24a75e7df571341bb0af917f2a47c0f3 /legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
parent73830721ce4c6553d4171552c2782adbf20e8d21 (diff)
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
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
index b65ee26352..68d3eb63c5 100644
--- a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
+++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
@@ -1096,7 +1096,7 @@ ecore_imf_context_event_callback_del(Ecore_IMF_Context *ctx, Ecore_IMF_Callback_
1096 { 1096 {
1097 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT, 1097 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1098 "ecore_imf_context_event_callback_del"); 1098 "ecore_imf_context_event_callback_del");
1099 return; 1099 return NULL;
1100 } 1100 }
1101 1101
1102 if (!func) return NULL; 1102 if (!func) return NULL;
@@ -1106,7 +1106,7 @@ ecore_imf_context_event_callback_del(Ecore_IMF_Context *ctx, Ecore_IMF_Callback_
1106 { 1106 {
1107 if ((fn) && (fn->func == func) && (fn->type == type)) 1107 if ((fn) && (fn->func == func) && (fn->type == type))
1108 { 1108 {
1109 void *tmp = fn->data; 1109 void *tmp = (void *)fn->data;
1110 free(fn); 1110 free(fn);
1111 ctx->callbacks = eina_list_remove_list(ctx->callbacks, l); 1111 ctx->callbacks = eina_list_remove_list(ctx->callbacks, l);
1112 return tmp; 1112 return tmp;