Fix test/c/std/json.c -Wunused-but-set-variable

This commit is contained in:
Nigel Tao committed 2022-02-08 22:08:14 +11:00
1 parent 23c9de18c6
commit a55e0a02a2
1 file changed
+6
+6
View File
@@ -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,