Workaround some warnings

This commit is contained in:
Patrick Pelissier committed 2020-07-11 20:13:31 +02:00
1 parent 4a80ccd5f4
commit 50b1bedc54
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ static void test_uint(void)
}
assert (k == 5);
rbtree_uint_it_t it, it2;
rbtree_uint_it(it2, tree);
for (rbtree_uint_it_last(it, tree) ; !rbtree_uint_end_p(it) ; rbtree_uint_previous(it)) {
k--;
rbtree_uint_it_set(it2, it);
+3 -1
View File
@@ -153,7 +153,9 @@ static void test_out_fill(void)
static const char expected2[] = "{ \"activated\":false,\"data\":{ \"vala\":1742,\"valb\":-2.300000,\"valc\":true,\"vald\":\"This is a test\",\"vale\":[1,2,3],\"valf\":{\"is_bool\":true},\"valg\":[1,2,3,4,5,6],\"valh\":{\"jane\":3,\"steeve\":-4},\"vali\":3}}";
char get[sizeof expected];
fgets (get, sizeof expected , f);
assert (strcmp(get, expected) == 0 || strcmp(get, expected2) == 0);
// Workaround string literal of length 4350 exceeds maximum length 4095
if (!(strcmp(get, expected) == 0 || strcmp(get, expected2) == 0))
assert (0);
fclose(f);
f = m_core_fopen ("a-mjson.dat", "rt");