summaryrefslogtreecommitdiffstats
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
parent61dd13e566d4c4a068bd8681bfeddc3970a6a53d (diff)
downloadsord-c8e67e243a6c26ca7921dd8bf5c2eeb064e42872.tar.gz
sord-c8e67e243a6c26ca7921dd8bf5c2eeb064e42872.tar.bz2
sord-c8e67e243a6c26ca7921dd8bf5c2eeb064e42872.zip
Fix unused parameter warnings
-rw-r--r--NEWS6
-rw-r--r--src/sord.c2
-rw-r--r--src/sord_config.h2
-rw-r--r--src/sord_test.c6
-rw-r--r--src/syntax.c2
-rw-r--r--wscript2
6 files changed, 17 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 48744c6..bf55edc 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+sord (0.16.11) unstable;
+
+ * Fix various warnings
+
+ -- David Robillard <d@drobilla.net> Sun, 17 Jul 2022 21:21:11 +0000
+
sord (0.16.10) stable;
* Fix Windows build
diff --git a/src/sord.c b/src/sord.c
index 05e822c..f447627 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -751,6 +751,8 @@ sord_node_free_internal(SordWorld* world, SordNode* node)
static void
sord_add_quad_ref(SordModel* model, const SordNode* node, SordQuadIndex i)
{
+ (void)model;
+
if (node) {
assert(node->refs > 0);
++((SordNode*)node)->refs;
diff --git a/src/sord_config.h b/src/sord_config.h
index caf61f0..59311ff 100644
--- a/src/sord_config.h
+++ b/src/sord_config.h
@@ -29,7 +29,7 @@
#define SORD_CONFIG_H
// Define version unconditionally so a warning will catch a mismatch
-#define SORD_VERSION "0.16.10"
+#define SORD_VERSION "0.16.11"
#if !defined(SORD_NO_DEFAULT_CONFIG)
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;
diff --git a/src/syntax.c b/src/syntax.c
index 4dfa0a8..2ab7941 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -66,6 +66,8 @@ sord_inserter_write_statement(SordInserter* inserter,
const SerdNode* object_datatype,
const SerdNode* object_lang)
{
+ (void)flags;
+
SordWorld* world = sord_get_world(inserter->model);
SerdEnv* env = inserter->env;
diff --git a/wscript b/wscript
index 4b63610..e7d35dd 100644
--- a/wscript
+++ b/wscript
@@ -11,7 +11,7 @@ from waflib.extras import autowaf
# major increment <=> incompatible changes
# minor increment <=> compatible changes (additions)
# micro increment <=> no interface changes
-SORD_VERSION = '0.16.10'
+SORD_VERSION = '0.16.11'
SORD_MAJOR_VERSION = '0'
# Mandatory waf variables