summaryrefslogtreecommitdiffstats
path: root/src/world.c
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 /src/world.c
parent37f824f48e8141cd039e5acb318f8e62a93498e3 (diff)
downloadlilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.gz
lilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.bz2
lilv-1d0547504963fcbe28dba9d3913a2398df65a938.zip
Fix unused parameter warnings
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/world.c b/src/world.c
index 9020ce7..47dc147 100644
--- a/src/world.c
+++ b/src/world.c
@@ -358,8 +358,11 @@ lilv_world_blank_node_prefix(LilvWorld* world)
int
lilv_header_compare_by_uri(const void* a, const void* b, const void* user_data)
{
+ (void)user_data;
+
const struct LilvHeader* const header_a = (const struct LilvHeader*)a;
const struct LilvHeader* const header_b = (const struct LilvHeader*)b;
+
return strcmp(lilv_node_as_uri(header_a->uri),
lilv_node_as_uri(header_b->uri));
}
@@ -374,9 +377,14 @@ lilv_header_compare_by_uri(const void* a, const void* b, const void* user_data)
int
lilv_lib_compare(const void* a, const void* b, const void* user_data)
{
+ (void)user_data;
+
const LilvLib* const lib_a = (const LilvLib*)a;
const LilvLib* const lib_b = (const LilvLib*)b;
- int cmp = strcmp(lilv_node_as_uri(lib_a->uri), lilv_node_as_uri(lib_b->uri));
+
+ const int cmp =
+ strcmp(lilv_node_as_uri(lib_a->uri), lilv_node_as_uri(lib_b->uri));
+
return cmp ? cmp : strcmp(lib_a->bundle_path, lib_b->bundle_path);
}
@@ -434,6 +442,8 @@ lilv_world_add_plugin(LilvWorld* world,
void* dynmanifest,
const SordNode* bundle)
{
+ (void)dynmanifest;
+
LilvNode* plugin_uri = lilv_node_new_from_node(world, plugin_node);
ZixTreeIter* z = NULL;
LilvPlugin* plugin =
@@ -636,7 +646,12 @@ lilv_world_load_dyn_manifest(LilvWorld* world,
}
sord_iter_free(iter);
sord_free(model);
-#endif // LILV_DYN_MANIFEST
+
+#else // LILV_DYN_MANIFEST
+ (void)world;
+ (void)bundle_node;
+ (void)manifest;
+#endif
}
#ifdef LILV_DYN_MANIFEST