From 09a75c53940cf0d626b9ba9e9d2b71491e9f696f Mon Sep 17 00:00:00 2001 From: fryshorts Date: Sat, 15 Feb 2014 19:34:37 +0100 Subject: [PATCH] fixed warnings --- test/linux/linux.c | 1 + test/linux/pulse-input.c | 3 +++ test/linux/xshm-input.c | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/test/linux/linux.c b/test/linux/linux.c index b2fb82d25..41c7258d4 100644 --- a/test/linux/linux.c +++ b/test/linux/linux.c @@ -23,6 +23,7 @@ extern struct obs_source_info pulse_input; bool obs_module_load(uint32_t obs_version) { + UNUSED_PARAMETER(obs_version); obs_register_source(&xshm_input); obs_register_source(&pulse_input); return true; diff --git a/test/linux/pulse-input.c b/test/linux/pulse-input.c index c4465355c..537396617 100644 --- a/test/linux/pulse-input.c +++ b/test/linux/pulse-input.c @@ -236,6 +236,7 @@ static void *pulse_thread(void *vptr) static const char *pulse_getname(const char *locale) { + UNUSED_PARAMETER(locale); return "Pulse Audio Input"; } @@ -259,6 +260,8 @@ static void pulse_destroy(void *vptr) static void *pulse_create(obs_data_t settings, obs_source_t source) { + UNUSED_PARAMETER(settings); + struct pulse_data *data = bmalloc(sizeof(struct pulse_data)); memset(data, 0, sizeof(struct pulse_data)); diff --git a/test/linux/xshm-input.c b/test/linux/xshm-input.c index 38b991028..8e997a354 100644 --- a/test/linux/xshm-input.c +++ b/test/linux/xshm-input.c @@ -40,6 +40,7 @@ struct xshm_data { static const char* xshm_input_getname(const char* locale) { + UNUSED_PARAMETER(locale); return "X11 Shared Memory Screen Input"; } @@ -83,6 +84,9 @@ static void xshm_input_destroy(void *vptr) static void *xshm_input_create(obs_data_t settings, obs_source_t source) { + UNUSED_PARAMETER(settings); + UNUSED_PARAMETER(source); + // create data structure struct xshm_data *data = bmalloc(sizeof(struct xshm_data)); memset(data, 0, sizeof(struct xshm_data)); @@ -155,6 +159,7 @@ fail: static void xshm_input_video_tick(void *vptr, float seconds) { + UNUSED_PARAMETER(seconds); XSHM_DATA(vptr); gs_entercontext(obs_graphics());