Skip to content

Commit

Permalink
fix GCC missing field initializers warning
Browse files Browse the repository at this point in the history
  • Loading branch information
guijan committed Sep 6, 2023
1 parent a85f51d commit e670d28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/time-macros.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e670d28

Please sign in to comment.