summaryrefslogtreecommitdiffstats
path: root/bindings/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-10 22:06:21 +0100
committerDavid Robillard <d@drobilla.net>2021-01-11 12:25:16 +0100
commit1d0547504963fcbe28dba9d3913a2398df65a938 (patch)
tree14ce1ac6bfb531459dfa6717fd1575ca3c524e16 /bindings/test
parent37f824f48e8141cd039e5acb318f8e62a93498e3 (diff)
downloadlilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.gz
lilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.bz2
lilv-1d0547504963fcbe28dba9d3913a2398df65a938.zip
Fix unused parameter warnings
Diffstat (limited to 'bindings/test')
-rw-r--r--bindings/test/bindings_test_plugin.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/bindings/test/bindings_test_plugin.c b/bindings/test/bindings_test_plugin.c
index 0c3af4f..2df64ea 100644
--- a/bindings/test/bindings_test_plugin.c
+++ b/bindings/test/bindings_test_plugin.c
@@ -73,6 +73,11 @@ instantiate(const LV2_Descriptor* descriptor,
const char* bundle_path,
const LV2_Feature* const* features)
{
+ (void)descriptor;
+ (void)rate;
+ (void)bundle_path;
+ (void)features;
+
Test* test = (Test*)malloc(sizeof(Test));
return (LV2_Handle)test;
@@ -88,7 +93,11 @@ instantiate(const LV2_Descriptor* descriptor,
*/
static void
connect_port(LV2_Handle instance, uint32_t port, void* data)
-{}
+{
+ (void)instance;
+ (void)port;
+ (void)data;
+}
/**
The activate() method is called by the host to initialise and prepare the
@@ -101,12 +110,17 @@ connect_port(LV2_Handle instance, uint32_t port, void* data)
*/
static void
activate(LV2_Handle instance)
-{}
+{
+ (void)instance;
+}
/** Process a block of audio (audio thread, must be RT safe). */
static void
run(LV2_Handle instance, uint32_t n_samples)
-{}
+{
+ (void)instance;
+ (void)n_samples;
+}
/**
The deactivate() method is the counterpart to activate() called by the host
@@ -121,7 +135,9 @@ run(LV2_Handle instance, uint32_t n_samples)
*/
static void
deactivate(LV2_Handle instance)
-{}
+{
+ (void)instance;
+}
/**
Destroy a plugin instance (counterpart to instantiate()).
@@ -148,6 +164,8 @@ cleanup(LV2_Handle instance)
static const void*
extension_data(const char* uri)
{
+ (void)uri;
+
return NULL;
}