Skip to content

Commit

Permalink
Got rid of some pedantic compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ttusar committed Aug 6, 2019
1 parent bc18b90 commit 7d59032
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code-experiments/src/coco_archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ coco_archive_t *coco_archive(const char *suite_name,
coco_free_memory(suite_options);
coco_suite_free(suite);

(void) update; /* To silence compiler warnings */

return archive;
}

Expand Down
2 changes: 1 addition & 1 deletion code-experiments/src/coco_suite.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ static int coco_suite_is_next_item_found(const size_t *items, const size_t numbe
*current_item_id = -1;
do {
(*current_item_id)++;
} while ((*current_item_id < number_of_items - 1) && (items[*current_item_id] == 0));
} while ((*current_item_id < (long) number_of_items - 1) && (items[*current_item_id] == 0));
if (items[*current_item_id] == 0)
coco_error("coco_suite_is_next_item_found(): the chosen suite has no valid (positive) items");
return 0;
Expand Down

0 comments on commit 7d59032

Please sign in to comment.