From: Timo Sirainen Date: Tue, 3 Sep 2019 16:23:09 +0000 (+0300) Subject: lib: test-event-flatten - Fix compiler warnings X-Git-Tag: 2.3.9~220 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b9da14240ae1511b9f1fac139715a3c1185ee5a;p=thirdparty%2Fdovecot%2Fcore.git lib: test-event-flatten - Fix compiler warnings For example: test-event-flatten.c:170:18: warning: missing field 'tv_usec' initializer [-Wmissing-field-initializers] --- diff --git a/src/lib/test-event-flatten.c b/src/lib/test-event-flatten.c index 14759b013b..aa11872339 100644 --- a/src/lib/test-event-flatten.c +++ b/src/lib/test-event-flatten.c @@ -148,7 +148,7 @@ static void test_event_flatten_one_parent(void) .value = { .str = NULL, .intmax = 42, - .timeval = {0}, + .timeval = {0,0}, } }; static struct event_field exp_2int[2] = { @@ -158,7 +158,7 @@ static void test_event_flatten_one_parent(void) .value = { .intmax = 42, .str = NULL, - .timeval = {0}, + .timeval = {0,0}, } }, { @@ -167,7 +167,7 @@ static void test_event_flatten_one_parent(void) .value = { .intmax = 49, .str = NULL, - .timeval = {0}, + .timeval = {0,0}, } }, }; @@ -178,7 +178,7 @@ static void test_event_flatten_one_parent(void) .value = { .str = "foo", .intmax = 0, - .timeval = {0}, + .timeval = {0,0}, } }, { @@ -187,7 +187,7 @@ static void test_event_flatten_one_parent(void) .value = { .intmax = 49, .str = NULL, - .timeval = {0}, + .timeval = {0,0}, } }, }; @@ -231,7 +231,7 @@ static void test_event_flatten_override_parent_field(void) .value = { .intmax = 42, .str = NULL, - .timeval = {0}, + .timeval = {0,0}, } }; static struct event_field exp_str = { @@ -240,7 +240,7 @@ static void test_event_flatten_override_parent_field(void) .value = { .str = "def", .intmax = 0, - .timeval = {0}, + .timeval = {0,0}, } }; static struct event_field exp_2str[2] = { @@ -250,7 +250,7 @@ static void test_event_flatten_override_parent_field(void) .value = { .str = "def", .intmax = 0, - .timeval = {0}, + .timeval = {0,0}, } }, { @@ -259,7 +259,7 @@ static void test_event_flatten_override_parent_field(void) .value = { .str = "bar", .intmax = 0, - .timeval = {0}, + .timeval = {0,0}, } }, };