[waffle] [PATCH 2/3] wcore: silence compiler unused-parameter warnings
Emil Velikov
emil.l.velikov at gmail.com
Wed Jan 28 09:45:20 PST 2015
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/waffle/core/wcore_config.h | 1 +
src/waffle/core/wcore_context.h | 1 +
src/waffle/core/wcore_platform.h | 2 ++
src/waffle/core/wcore_window.h | 1 +
4 files changed, 5 insertions(+)
diff --git a/src/waffle/core/wcore_config.h b/src/waffle/core/wcore_config.h
index 7911f56..27534af 100644
--- a/src/waffle/core/wcore_config.h
+++ b/src/waffle/core/wcore_config.h
@@ -73,6 +73,7 @@ wcore_config_init(struct wcore_config *self,
static inline bool
wcore_config_teardown(struct wcore_config *self)
{
+ (void) self;
assert(self);
return true;
}
diff --git a/src/waffle/core/wcore_context.h b/src/waffle/core/wcore_context.h
index fb67e4c..3800113 100644
--- a/src/waffle/core/wcore_context.h
+++ b/src/waffle/core/wcore_context.h
@@ -69,6 +69,7 @@ wcore_context_init(struct wcore_context *self,
static inline bool
wcore_context_teardown(struct wcore_context *self)
{
+ (void) self;
assert(self);
return true;
}
diff --git a/src/waffle/core/wcore_platform.h b/src/waffle/core/wcore_platform.h
index 2f9b9f8..780d07a 100644
--- a/src/waffle/core/wcore_platform.h
+++ b/src/waffle/core/wcore_platform.h
@@ -144,6 +144,7 @@ struct wcore_platform {
static inline bool
wcore_platform_init(struct wcore_platform *self)
{
+ (void) self;
assert(self);
return true;
}
@@ -151,6 +152,7 @@ wcore_platform_init(struct wcore_platform *self)
static inline bool
wcore_platform_teardown(struct wcore_platform *self)
{
+ (void) self;
assert(self);
return true;
}
diff --git a/src/waffle/core/wcore_window.h b/src/waffle/core/wcore_window.h
index 20a154b..4161597 100644
--- a/src/waffle/core/wcore_window.h
+++ b/src/waffle/core/wcore_window.h
@@ -62,6 +62,7 @@ wcore_window_init(struct wcore_window *self,
static inline bool
wcore_window_teardown(struct wcore_window *self)
{
+ (void) self;
assert(self);
return true;
}
--
2.1.3
More information about the waffle
mailing list