ecore ecore_imf_context.c: Fixed build warnings.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 29 Jan 2012 13:39:07 +0000 (13:39 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 29 Jan 2012 13:39:07 +0000 (13:39 +0000)
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

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@67585 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_imf/ecore_imf_context.c

index b65ee26..68d3eb6 100644 (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;