[waffle] [PATCH 1/3] android: silence compiler unused-parameter warnings

Emil Velikov emil.l.velikov at gmail.com
Wed Jan 28 09:45:19 PST 2015


Android 5 (lollipop) seems to add the -Wunused-parameter to the build,
leading to a handful of warnings.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/waffle/android/droid_display.c | 2 ++
 src/waffle/android/droid_window.c  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/waffle/android/droid_display.c b/src/waffle/android/droid_display.c
index 44389f1..3f39739 100644
--- a/src/waffle/android/droid_display.c
+++ b/src/waffle/android/droid_display.c
@@ -40,6 +40,8 @@ droid_display_connect(struct wcore_platform *wc_plat,
     bool ok = true;
     struct droid_display *self;
 
+    (void) name;
+
     self = wcore_calloc(sizeof(*self));
     if (self == NULL)
         return NULL;
diff --git a/src/waffle/android/droid_window.c b/src/waffle/android/droid_window.c
index 20a566f..b826ff9 100644
--- a/src/waffle/android/droid_window.c
+++ b/src/waffle/android/droid_window.c
@@ -47,6 +47,8 @@ droid_window_create(struct wcore_platform *wc_plat,
     struct droid_display *dpy = droid_display(wc_config->display);
     bool ok = true;
 
+    (void) wc_plat;
+
     if (wcore_attrib_list_length(attrib_list) > 0) {
         wcore_error_bad_attribute(attrib_list[0]);
     }
-- 
2.1.3



More information about the waffle mailing list