fix warning in upstream musl function, see https://git.musl-libc.org/cgit/musl/commit/src/time/__year_to_secs.c\?id\=2d84486a08c57d00b647586b7cbe2dcec2728e81
This commit is contained in:
parent
2049febcf4
commit
5fa939786a
@ -123,9 +123,9 @@ static uint32_t __year_to_secs(uint32_t year, int *is_leap)
|
||||
return 31536000*(y-70) + 86400*leaps;
|
||||
}
|
||||
|
||||
int cycles, centuries, leaps, rem;
|
||||
int cycles, centuries, leaps, rem, dummy;
|
||||
|
||||
if (!is_leap) is_leap = &(int){0};
|
||||
if (!is_leap) is_leap = &dummy;
|
||||
cycles = (year-100) / 400;
|
||||
rem = (year-100) % 400;
|
||||
if (rem < 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user