diff options
author | David Robillard <d@drobilla.net> | 2021-01-10 22:06:21 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-11 12:25:16 +0100 |
commit | 1d0547504963fcbe28dba9d3913a2398df65a938 (patch) | |
tree | 14ce1ac6bfb531459dfa6717fd1575ca3c524e16 /src/state.c | |
parent | 37f824f48e8141cd039e5acb318f8e62a93498e3 (diff) | |
download | lilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.gz lilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.bz2 lilv-1d0547504963fcbe28dba9d3913a2398df65a938.zip |
Fix unused parameter warnings
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index b74cd7a..a4a50a9 100644 --- a/src/state.c +++ b/src/state.c @@ -83,12 +83,16 @@ struct LilvStateImpl { static int abs_cmp(const void* a, const void* b, const void* user_data) { + (void)user_data; + return strcmp(((const PathMap*)a)->abs, ((const PathMap*)b)->abs); } static int rel_cmp(const void* a, const void* b, const void* user_data) { + (void)user_data; + return strcmp(((const PathMap*)a)->rel, ((const PathMap*)b)->rel); } @@ -241,6 +245,8 @@ retrieve_callback(LV2_State_Handle handle, static bool path_exists(const char* path, const void* ignored) { + (void)ignored; + return lilv_path_exists(path); } @@ -414,6 +420,8 @@ state_strerror(LV2_State_Status st) static void lilv_free_path(LV2_State_Free_Path_Handle handle, char* path) { + (void)handle; + lilv_free(path); } @@ -885,6 +893,8 @@ write_manifest(LilvWorld* world, SordModel* model, const SerdNode* file_uri) { + (void)world; + char* const path = (char*)serd_file_uri_parse(file_uri->buf, NULL); FILE* const wfd = fopen(path, "w"); if (!wfd) { @@ -1069,6 +1079,8 @@ lilv_state_write(LilvWorld* world, const char* uri, const char* dir) { + (void)world; + SerdNode lv2_appliesTo = serd_node_from_string(SERD_CURIE, USTR("lv2:appliesTo")); |