diff options
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | src/sord.c | 2 | ||||
-rw-r--r-- | src/sord_config.h | 2 | ||||
-rw-r--r-- | src/sord_test.c | 6 | ||||
-rw-r--r-- | src/syntax.c | 2 | ||||
-rw-r--r-- | wscript | 2 |
6 files changed, 17 insertions, 3 deletions
@@ -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 @@ -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; @@ -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 |