From e670d28995b4d04b557c2104e46344e12162fef6 Mon Sep 17 00:00:00 2001 From: Guilherme Janczak Date: Wed, 6 Sep 2023 22:50:26 +0000 Subject: [PATCH] fix GCC missing field initializers warning --- test/time-macros.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/time-macros.c b/test/time-macros.c index 37681d4..bf65ba8 100644 --- a/test/time-macros.c +++ b/test/time-macros.c @@ -22,8 +22,10 @@ int main(void) { - struct timespec a = {1}, b; + struct timespec a, b; + a.tv_sec = 1; + a.tv_nsec = 0; if (!timespecisset(&a)) errx(1, "timespeccisset() says tv_sec of 1 is not set"); timespecclear(&a);