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

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


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

diff --git a/src/waffle/egl/wegl_config.c b/src/waffle/egl/wegl_config.c
index db3d3c9..a79bc53 100644
--- a/src/waffle/egl/wegl_config.c
+++ b/src/waffle/egl/wegl_config.c
@@ -215,6 +215,8 @@ wegl_config_choose(struct wcore_platform *wc_plat,
     struct wegl_config *config;
     bool ok;
 
+    (void) wc_plat;
+
     config = wcore_calloc(sizeof(*config));
     if (!config)
         return NULL;
diff --git a/src/waffle/egl/wegl_context.c b/src/waffle/egl/wegl_context.c
index ba7d426..2aec0dd 100644
--- a/src/waffle/egl/wegl_context.c
+++ b/src/waffle/egl/wegl_context.c
@@ -166,6 +166,8 @@ wegl_context_create(struct wcore_platform *wc_plat,
     struct wegl_context *share_ctx = wegl_context(wc_share_ctx);
     bool ok;
 
+    (void) wc_plat;
+
     ctx = wcore_calloc(sizeof(*ctx));
     if (!ctx)
         return NULL;
-- 
2.1.3



More information about the waffle mailing list