fix all compile warnings when xim is disabled
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 13 Jan 2012 23:57:25 +0000 (23:57 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 13 Jan 2012 23:57:25 +0000 (23:57 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@67194 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/immodules/xim/ecore_imf_xim.c

index f524798..9ee906d 100644 (file)
@@ -140,6 +140,8 @@ _ecore_imf_context_xim_add(Ecore_IMF_Context *ctx)
    imf_context_data->in_toplevel = EINA_FALSE;
 
    ecore_imf_context_data_set(ctx, imf_context_data);
+#else
+   (void)ctx;
 #endif
 }
 
@@ -177,6 +179,8 @@ _ecore_imf_context_xim_del(Ecore_IMF_Context *ctx)
    set_ic_client_window(ctx, 0);
 
    imf_context_data_destroy(imf_context_data);
+#else
+   (void)ctx;
 #endif
 }
 
@@ -187,6 +191,9 @@ _ecore_imf_context_xim_client_window_set(Ecore_IMF_Context *ctx,
    EINA_LOG_DBG("in");
 #ifdef ENABLE_XIM
    set_ic_client_window(ctx, (Ecore_X_Window)((Ecore_Window)window));
+#else
+   (void)ctx;
+   (void)window;
 #endif
 }
 
@@ -221,6 +228,7 @@ _ecore_imf_context_xim_preedit_string_get(Ecore_IMF_Context *ctx,
    if(cursor_pos)
      *cursor_pos = imf_context_data->preedit_cursor;
 #else
+   (void)ctx;
    if(str)
      *str = NULL;
    if(cursor_pos)
@@ -265,6 +273,7 @@ _ecore_imf_context_xim_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx
    if (start >= 0)
      add_feedback_attr (attrs, *str, last_feedback, start, i);
 #else
+   (void)ctx;
    if(str)
      *str = NULL;
    if(attrs)
@@ -297,6 +306,8 @@ _ecore_imf_context_xim_focus_in(Ecore_IMF_Context *ctx)
 
         XSetICFocus(ic);
      }
+#else
+   (void)ctx;
 #endif
 }
 
@@ -315,6 +326,8 @@ _ecore_imf_context_xim_focus_out(Ecore_IMF_Context *ctx)
         if(ic)
           XUnsetICFocus(ic);
      }
+#else
+   (void)ctx;
 #endif
 }
 
@@ -388,6 +401,8 @@ _ecore_imf_context_xim_reset(Ecore_IMF_Context *ctx)
      }
 
    XFree (result);
+#else
+   (void)ctx;
 #endif
 }
 
@@ -407,6 +422,9 @@ _ecore_imf_context_xim_use_preedit_set(Ecore_IMF_Context *ctx,
         imf_context_data->use_preedit = use_preedit;
         reinitialize_ic(ctx);
      }
+#else
+   (void)ctx;
+   (void)use_preedit;
 #endif
 }
 
@@ -470,6 +488,11 @@ _ecore_imf_context_xim_cursor_location_set (Ecore_IMF_Context   *ctx,
                  NULL);
 
    XFree(preedit_attr);
+#else
+   (void)ctx;
+   (void)x;
+   (void)y;
+   (void)h;
 #endif
    (void)(w); // yes w is unused, but only a bi-product of the algorithm
 }
@@ -691,6 +714,9 @@ _ecore_imf_context_xim_filter_event(Ecore_IMF_Context   *ctx,
 
    return result;
 #else
+   (void)ctx;
+   (void)type;
+   (void)event;
    return EINA_FALSE;
 #endif
 }