summaryrefslogtreecommitdiffstats
path: root/src/sord_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-03 20:42:18 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 17:21:43 -0400
commitc8e67e243a6c26ca7921dd8bf5c2eeb064e42872 (patch)
tree894568d579544cd06d3842d257769e380c072e71 /src/sord_test.c
parent61dd13e566d4c4a068bd8681bfeddc3970a6a53d (diff)
downloadsord-c8e67e243a6c26ca7921dd8bf5c2eeb064e42872.tar.gz
sord-c8e67e243a6c26ca7921dd8bf5c2eeb064e42872.tar.bz2
sord-c8e67e243a6c26ca7921dd8bf5c2eeb064e42872.zip
Fix unused parameter warnings
Diffstat (limited to 'src/sord_test.c')
-rw-r--r--src/sord_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sord_test.c b/src/sord_test.c
index 8443d3f..98f1098 100644
--- a/src/sord_test.c
+++ b/src/sord_test.c
@@ -371,6 +371,8 @@ test_read(SordWorld* world, SordModel* sord, SordNode* g, const size_t n_quads)
static SerdStatus
unexpected_error(void* handle, const SerdError* error)
{
+ (void)handle;
+
fprintf(stderr, "unexpected error: ");
vfprintf(stderr, error->fmt, *error->args);
return SERD_SUCCESS;
@@ -379,6 +381,8 @@ unexpected_error(void* handle, const SerdError* error)
static SerdStatus
expected_error(void* handle, const SerdError* error)
{
+ (void)handle;
+
fprintf(stderr, "expected error: ");
vfprintf(stderr, error->fmt, *error->args);
++n_expected_errors;
@@ -394,7 +398,7 @@ finished(SordWorld* world, SordModel* sord, int status)
}
int
-main(int argc, char** argv)
+main(void)
{
static const size_t n_quads = 300;