evas: fix warning and remove useless code.
authorCedric BAIL <c.bail@partner.samsung.com>
Fri, 27 Jun 2014 11:49:59 +0000 (13:49 +0200)
committerCedric BAIL <c.bail@partner.samsung.com>
Fri, 27 Jun 2014 11:49:59 +0000 (13:49 +0200)
src/modules/evas/engines/software_gdi/evas_engine.c
src/modules/evas/engines/software_gdi/evas_outbuf.c

index 9ed5851..315da3d 100644 (file)
@@ -324,7 +324,7 @@ eng_output_idle_flush(void *data)
 }
 
 static Eina_Bool
-eng_canvas_alpha_get(void *data, void *context)
+eng_canvas_alpha_get(void *data EINA_UNUSED, void *context EINA_UNUSED)
 {
    return EINA_FALSE;
 }
@@ -368,7 +368,7 @@ module_open(Evas_Module *em)
 }
 
 static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em EINA_UNUSED)
 {
   eina_log_domain_unregister(_evas_engine_soft_gdi_log_dom);
   _evas_engine_soft_gdi_log_dom = -1;
index f406256..28a64a3 100644 (file)
@@ -423,8 +423,6 @@ evas_software_gdi_outbuf_push_updated_region(Outbuf     *buf,
         DATA32 *tmp;
         int i;
         int j;
-        int ww;
-        int wh;
         int dx;
         int dy;
         int xmin;
@@ -433,9 +431,6 @@ evas_software_gdi_outbuf_push_updated_region(Outbuf     *buf,
         if (!GetClientRect(buf->priv.gdi.window, &rect))
           return;
 
-        ww = rect.right - rect.left;
-        wh = rect.bottom - rect.top;
-
         if (!GetWindowRect(buf->priv.gdi.window, &rect))
           return;
         if (!ClientToScreen(buf->priv.gdi.window, &pt))