aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-30 14:08:44 -0500
committerDavid Robillard <d@drobilla.net>2019-01-05 18:55:50 +0100
commit9b67e27573df7518f136a446268551bd3939cc78 (patch)
tree4d3ac23c352848ec0e2bedf7fbe587c75f5c6a4f /tests
parentec42a28933be723ad274a3013bece33fc043d535 (diff)
downloadserd-9b67e27573df7518f136a446268551bd3939cc78.tar.gz
serd-9b67e27573df7518f136a446268551bd3939cc78.tar.bz2
serd-9b67e27573df7518f136a446268551bd3939cc78.zip
Fix unused parameter warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index ef1acacb..e537a5f5 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -52,6 +52,9 @@ test_strtod(double dbl, double max_delta)
static SerdStatus
count_prefixes(void* handle, const SerdNode* name, const SerdNode* uri)
{
+ (void)name;
+ (void)uri;
+
++*(int*)handle;
return SERD_SUCCESS;
}
@@ -71,6 +74,13 @@ test_sink(void* handle,
const SerdNode* object_datatype,
const SerdNode* object_lang)
{
+ (void)flags;
+ (void)subject;
+ (void)predicate;
+ (void)object;
+ (void)object_datatype;
+ (void)object_lang;
+
ReaderTest* rt = (ReaderTest*)handle;
++rt->n_statements;
rt->graph = graph;