Fixed warnings
This commit is contained in:
parent
febf34a737
commit
a193006061
|
|
@ -309,7 +309,7 @@ SlsStr sls_format(const SlsStr s, ...) {
|
||||||
target_i += items[item_i].self_length;
|
target_i += items[item_i].self_length;
|
||||||
item_i++;
|
item_i++;
|
||||||
}
|
}
|
||||||
if (s.len > source_i)
|
if (s.len > (size_t)source_i)
|
||||||
memcpy(str + target_i, s.str + source_i, s.len - source_i);
|
memcpy(str + target_i, s.str + source_i, s.len - source_i);
|
||||||
str[str_new.len] = '\0';
|
str[str_new.len] = '\0';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ TestsReport run_extra_tests()
|
||||||
.tests = malloc(sizeof(TestResult) * NUM_EXTRA_TESTS)};
|
.tests = malloc(sizeof(TestResult) * NUM_EXTRA_TESTS)};
|
||||||
|
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
|
(void)i;
|
||||||
// report.tests[i++] = test_malloc_and_copy();
|
// report.tests[i++] = test_malloc_and_copy();
|
||||||
return report;
|
return report;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue