From 0b5bd6e1436c38a74c5294535d5f4d7a7cf79d54 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 25 Oct 2022 16:20:15 +0100 Subject: win32: fix warning in timegm(3) Building on Windows using w64devkit resulted in a new warning in timegm(3). The compiler didn't like a reference to the unnamed temporary in: if (!is_leap) is_leap = &(int){0}; is_leap is always non-NULL in the limited version of the code used here so the offending line can simply be removed. --- win32/timegm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/win32/timegm.c b/win32/timegm.c index 8bfa041c4..ac39a26f5 100644 --- a/win32/timegm.c +++ b/win32/timegm.c @@ -42,7 +42,6 @@ static long long __year_to_secs(long long year, int *is_leap) return 31536000*(y-70) + 86400*leaps; } - if (!is_leap) is_leap = &(int){0}; cycles = (year-100) / 400; rem = (year-100) % 400; if (rem < 0) { -- cgit v1.2.3-55-g6feb