mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Fix test/c/std/json.c -Wunused-but-set-variable
This commit is contained in:
1 parent
23c9de18c6
commit
a55e0a02a2
1 file changed
+6
@@ -3099,6 +3099,12 @@ test_wuffs_json_decode_quirk_allow_backslash_x() {
|
|||||||
|
|
||||||
src_index += token_length;
|
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;
|
uint64_t want = test_cases[tc].want_code_points;
|
||||||
if (have != want) {
|
if (have != want) {
|
||||||
RETURN_FAIL("tc=%zu: have U+%08" PRIX64 ", want U+%08" PRIX64, tc, have,
|
RETURN_FAIL("tc=%zu: have U+%08" PRIX64 ", want U+%08" PRIX64, tc, have,
|
||||||
|
|||||||
Reference in new issue
Block a user