diff options
author | David Robillard <d@drobilla.net> | 2024-12-11 19:12:23 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-12-11 19:39:22 -0500 |
commit | cbaf0af56e7b59f7ba67ca779052ba94e01d37b7 (patch) | |
tree | 3eead43482dd5b76c02c55cbded48174390533cf /src | |
parent | a23f3b993aa379e99c2fff909ea3934992915d21 (diff) | |
download | lilv-cbaf0af56e7b59f7ba67ca779052ba94e01d37b7.tar.gz lilv-cbaf0af56e7b59f7ba67ca779052ba94e01d37b7.tar.bz2 lilv-cbaf0af56e7b59f7ba67ca779052ba94e01d37b7.zip |
Check or explicitly ignore return values
Diffstat (limited to 'src')
-rw-r--r-- | src/state.c | 8 | ||||
-rw-r--r-- | src/world.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/state.c b/src/state.c index 48d7230..5eb44a4 100644 --- a/src/state.c +++ b/src/state.c @@ -257,9 +257,9 @@ static char* make_path(LV2_State_Make_Path_Handle handle, const char* path) { const LilvState* state = (const LilvState*)handle; - zix_create_directories(NULL, state->dir); - - return zix_path_join(NULL, state->dir, path); + return !zix_create_directories(NULL, state->dir) + ? zix_path_join(NULL, state->dir, path) + : NULL; } static bool @@ -913,7 +913,7 @@ remove_manifest_entry(SordWorld* world, SordModel* model, const char* subject) SordNode* s = sord_new_uri(world, USTR(subject)); SordIter* i = sord_search(model, s, NULL, NULL, NULL); while (!sord_iter_end(i)) { - sord_erase(model, i); + (void)sord_erase(model, i); } sord_iter_free(i); sord_node_free(world, s); diff --git a/src/world.c b/src/world.c index 1d60c45..73f19a9 100644 --- a/src/world.c +++ b/src/world.c @@ -384,7 +384,7 @@ lilv_collection_find_by_uri(const ZixTree* seq, const LilvNode* uri) ZixTreeIter* i = NULL; if (lilv_node_is_uri(uri)) { struct LilvHeader key = {NULL, (LilvNode*)uri}; - zix_tree_find(seq, &key, &i); + (void)zix_tree_find(seq, &key, &i); } return i; } |