Skip to content

Commit

Permalink
Fix test/c/std/json.c -Wunused-but-set-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nigeltao committed Feb 8, 2022
1 parent 23c9de1 commit a55e0a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/c/std/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -3099,6 +3099,12 @@ test_wuffs_json_decode_quirk_allow_backslash_x() {

src_index += token_length;
}

if (src_index != src.meta.ri) {
RETURN_FAIL("tc=%zu: src_index: have %" PRIu64 ", want %zu", tc,
src_index, src.meta.ri);
}

uint64_t want = test_cases[tc].want_code_points;
if (have != want) {
RETURN_FAIL("tc=%zu: have U+%08" PRIX64 ", want U+%08" PRIX64, tc, have,
Expand Down

0 comments on commit a55e0a0

Please sign in to comment.