devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=66233ec6a758f069ae47c1d58cd315852d921f25

commit 66233ec6a758f069ae47c1d58cd315852d921f25
Author: Chris Michael <[email protected]>
Date:   Fri Oct 3 13:34:18 2014 -0400

    fix compiler warnings when building for wayland-only
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_entry.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_entry.c b/src/bin/e_entry.c
index 874d0b9..8a821b6 100644
--- a/src/bin/e_entry.c
+++ b/src/bin/e_entry.c
@@ -564,6 +564,9 @@ _e_entry_x_selection_notify_handler(void *data, int type 
__UNUSED__, void *event
                }
           }
      }
+#else
+   (void)data;
+   (void)event;
 #endif
    return ECORE_CALLBACK_PASS_ON;
 }
@@ -576,7 +579,6 @@ _e_entry_x_selection_update(Evas_Object *entry)
    Ecore_Window xwin;
    E_Win *win;
    E_Comp *c;
-   const char *text;
 
    if ((!entry) || (!(sd = evas_object_smart_data_get(entry))))
      return;
@@ -597,6 +599,8 @@ _e_entry_x_selection_update(Evas_Object *entry)
      return;
 
 #ifndef HAVE_WAYLAND_ONLY
+   const char *text;
+
    text = edje_object_part_text_selection_get(sd->entry_object, 
ENTRY_PART_NAME);
    if (text)
      ecore_x_selection_primary_set(xwin, text, strlen(text) + 1);
@@ -637,6 +641,8 @@ _entry_paste_request_signal_cb(void *data,
         ecore_x_selection_clipboard_request(xwin,
                                             
ECORE_X_SELECTION_TARGET_UTF8_STRING);
      }
+#else
+   (void)emission;
 #endif
 }
 

-- 


Reply via email to