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 /test/test_state.c | |
parent | 37f824f48e8141cd039e5acb318f8e62a93498e3 (diff) | |
download | lilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.gz lilv-1d0547504963fcbe28dba9d3913a2398df65a938.tar.bz2 lilv-1d0547504963fcbe28dba9d3913a2398df65a938.zip |
Fix unused parameter warnings
Diffstat (limited to 'test/test_state.c')
-rw-r--r-- | test/test_state.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test_state.c b/test/test_state.c index ceb5b71..533c3a9 100644 --- a/test/test_state.c +++ b/test/test_state.c @@ -155,6 +155,8 @@ no_test_directories(void) static void remove_file(const char* path, const char* name, void* data) { + (void)data; + char* const full_path = lilv_path_join(path, name); assert(!lilv_remove(full_path)); free(full_path); @@ -215,6 +217,9 @@ set_port_value(const char* port_symbol, uint32_t size, uint32_t type) { + (void)size; + (void)type; + TestContext* ctx = (TestContext*)user_data; if (!strcmp(port_symbol, "input")) { @@ -535,6 +540,14 @@ count_sink(void* const handle, const SerdNode* const object_datatype, const SerdNode* const object_lang) { + (void)flags; + (void)graph; + (void)subject; + (void)predicate; + (void)object; + (void)object_datatype; + (void)object_lang; + size_t* const n_statements = (size_t*)handle; ++(*n_statements); @@ -1009,6 +1022,9 @@ test_bad_subject(void) static void count_file(const char* path, const char* name, void* data) { + (void)path; + (void)name; + *(unsigned*)data += 1; } |