Enable more pedantic compiler flags

This commit is contained in:
2022-11-22 21:11:06 -05:00
parent e02d8433fa
commit 2510c7f36a
9 changed files with 39 additions and 26 deletions

View File

@@ -30,7 +30,7 @@ static void test_arena_single(void) {
}
static void test_arena_get_all(void) {
struct test_5 *objects[NUM_OBJECTS] = {};
struct test_5 *objects[NUM_OBJECTS] = { NULL };
for (int i = 0; i < NUM_OBJECTS; i++) {
objects[i] = ucl_arena_get(arena);
TEST_ASSERT_NOT_NULL(objects[i]);
@@ -38,7 +38,7 @@ static void test_arena_get_all(void) {
}
static void test_arena_get_put_limit(void) {
struct test_5 *objects[NUM_OBJECTS] = {};
struct test_5 *objects[NUM_OBJECTS] = { NULL };
for (int i = 0; i < NUM_OBJECTS; i++) {
objects[i] = ucl_arena_get(arena);
@@ -51,8 +51,7 @@ static void test_arena_get_put_limit(void) {
}
static void test_arena_get_over_limit(void) {
struct test_5 *objects[NUM_OBJECTS + 1] = {};
struct test_5 *objects[NUM_OBJECTS + 1] = { NULL };
for (int i = 0; i < NUM_OBJECTS + 1; i++) {
objects[i] = ucl_arena_get(arena);
if (i < NUM_OBJECTS) {