summaryrefslogtreecommitdiffstats
path: root/src/collections.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/collections.c
parent37f824f48e8141cd039e5acb318f8e62a93498e3 (diff)
downloadlilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.gz
lilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.bz2
lilv-1d0547504963fcbe28dba9d3913a2398df65a938.zip
Fix unused parameter warnings
Diffstat (limited to 'src/collections.c')
-rw-r--r--src/collections.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/collections.c b/src/collections.c
index fdaca93..c2c752a 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -28,14 +28,19 @@
int
lilv_ptr_cmp(const void* a, const void* b, const void* user_data)
{
+ (void)user_data;
+
return (intptr_t)a - (intptr_t)b;
}
int
lilv_resource_node_cmp(const void* a, const void* b, const void* user_data)
{
+ (void)user_data;
+
const SordNode* an = ((const LilvNode*)a)->node;
const SordNode* bn = ((const LilvNode*)b)->node;
+
return (intptr_t)an - (intptr_t)bn;
}
@@ -70,6 +75,8 @@ lilv_collection_begin(const LilvCollection* collection)
void*
lilv_collection_get(const LilvCollection* collection, const LilvIter* i)
{
+ (void)collection;
+
return zix_tree_get((const ZixTreeIter*)i);
}
@@ -185,11 +192,13 @@ lilv_nodes_merge(const LilvNodes* a, const LilvNodes* b)
\
LilvIter* prefix##_next(const CT* collection, LilvIter* i) \
{ \
+ (void)collection; \
return zix_tree_iter_next((ZixTreeIter*)i); \
} \
\
bool prefix##_is_end(const CT* collection, LilvIter* i) \
{ \
+ (void)collection; \
return zix_tree_iter_is_end((ZixTreeIter*)i); \
}