Enable more pedantic compiler flags
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user