diff options
Diffstat (limited to 'src')
-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 |
4 files changed, 10 insertions, 2 deletions
@@ -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; |