fetchurl: fix build errors with gcc 12

Fixes #4840
This commit is contained in:
Christian Prochaska 2023-04-25 03:00:58 +02:00 committed by Christian Helmuth
parent c2aacfa9c4
commit 1edde7c1bc

View File

@ -272,7 +272,7 @@ struct Fetchurl::Main
.timer = _timer, .timer = _timer,
.last_ms = _timer.curr_time().trunc_to_plain_ms(), .last_ms = _timer.curr_time().trunc_to_plain_ms(),
.max_timeout = _progress_timeout, .max_timeout = _progress_timeout,
.curr_timeout = Genode::Milliseconds { .value = 0 }, .curr_timeout = Genode::Milliseconds { 0 },
.fetch = _fetch, .fetch = _fetch,
}; };
curl_easy_setopt(_curl, CURLOPT_PROGRESSDATA, &ud); curl_easy_setopt(_curl, CURLOPT_PROGRESSDATA, &ud);
@ -362,7 +362,7 @@ static int progress_callback(void *userdata,
Fetch &fetch = ud.fetch; Fetch &fetch = ud.fetch;
Milliseconds curr { timer.curr_time().trunc_to_plain_ms() }; Milliseconds curr { timer.curr_time().trunc_to_plain_ms() };
Milliseconds diff { .value = curr.value - ud.last_ms.value }; Milliseconds diff { curr.value - ud.last_ms.value };
ud.last_ms = curr; ud.last_ms = curr;
/* /*