diff options
author | David Robillard <d@drobilla.net> | 2011-04-28 18:16:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-28 18:16:55 +0000 |
commit | f1982b223258c47ea1abadc110243901e028201b (patch) | |
tree | 056081003cbc328694473968525c87a55e719001 /src | |
parent | 86e095df809f8d15b54ee62801f3deb829adfae9 (diff) | |
download | sord-f1982b223258c47ea1abadc110243901e028201b.tar.gz sord-f1982b223258c47ea1abadc110243901e028201b.tar.bz2 sord-f1982b223258c47ea1abadc110243901e028201b.zip |
Fix warnings.
git-svn-id: http://svn.drobilla.net/sord/trunk@99 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src')
-rw-r--r-- | src/sord_test.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sord_test.c b/src/sord_test.c index ef8f85c..589ed9d 100644 --- a/src/sord_test.c +++ b/src/sord_test.c @@ -82,16 +82,16 @@ generate(SordWorld* world, SordModel* sord, size_t n_quads, size_t n_objects_per tup[2] = sord_new_literal(world, 0, USTR("hello"), NULL); tup[3] = 0; sord_add(sord, tup); - sord_node_free(world, tup[2]); + sord_node_free(world, (SordNode*)tup[2]); tup[2] = sord_new_literal(world, 0, USTR("hi"), NULL); sord_add(sord, tup); - sord_node_free(world, tup[0]); - sord_node_free(world, tup[2]); + sord_node_free(world, (SordNode*)tup[0]); + sord_node_free(world, (SordNode*)tup[2]); tup[0] = uri(world, 14); tup[2] = sord_new_literal(world, 0, USTR("bonjour"), "fr"); sord_add(sord, tup); - sord_node_free(world, tup[2]); + sord_node_free(world, (SordNode*)tup[2]); tup[2] = sord_new_literal(world, 0, USTR("salut"), "fr"); sord_add(sord, tup); @@ -106,18 +106,18 @@ generate(SordWorld* world, SordModel* sord, size_t n_quads, size_t n_objects_per } // Add a blank node subject - sord_node_free(world, tup[0]); + sord_node_free(world, (SordNode*)tup[0]); tup[0] = sord_new_blank(world, USTR("ablank")); sord_add(sord, tup); - sord_node_free(world, tup[1]); - sord_node_free(world, tup[2]); + sord_node_free(world, (SordNode*)tup[1]); + sord_node_free(world, (SordNode*)tup[2]); tup[1] = uri(world, 6); tup[2] = uri(world, 7); sord_add(sord, tup); - sord_node_free(world, tup[0]); - sord_node_free(world, tup[1]); - sord_node_free(world, tup[2]); + sord_node_free(world, (SordNode*)tup[0]); + sord_node_free(world, (SordNode*)tup[1]); + sord_node_free(world, (SordNode*)tup[2]); return EXIT_SUCCESS; } @@ -211,7 +211,7 @@ test_read(SordWorld* world, SordModel* sord, const size_t n_quads, const int n_o } } fprintf(stderr, "OK\n"); - sord_node_free(world, pat[0]); + sord_node_free(world, (SordNode*)pat[0]); sord_iter_free(iter); if (num_results != 2) { fprintf(stderr, "Blank node subject query failed\n"); @@ -221,7 +221,7 @@ test_read(SordWorld* world, SordModel* sord, const size_t n_quads, const int n_o // Test nested queries fprintf(stderr, "Nested Queries... "); pat[0] = pat[1] = pat[2] = 0; - SordNode* last_subject = 0; + const SordNode* last_subject = 0; iter = sord_find(sord, pat); for (; !sord_iter_end(iter); sord_iter_next(iter)) { sord_iter_get(iter, id); |