From 2bbdd4946561444fffba2bf047b0926a2cf9f5fe Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:38:21 +0200 Subject: =?UTF-8?q?Remove=20"warning:=20extended=20initializer=20lists=20o?= =?UTF-8?q?nly=20available=20with=20=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Fl_Timeout.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Fl_Timeout.cxx') diff --git a/src/Fl_Timeout.cxx b/src/Fl_Timeout.cxx index a707e554e..50445eec6 100644 --- a/src/Fl_Timeout.cxx +++ b/src/Fl_Timeout.cxx @@ -81,7 +81,12 @@ Fl_Timestamp Fl::now() { } /** The time stamp of a time point in the distant past */ -const Fl_Timestamp Fl::distant_past() { return {LONG_MIN/10, 0}; } +const Fl_Timestamp Fl::distant_past() { + Fl_Timestamp ts; + ts.sec = LONG_MIN/10; + ts.usec = 0; + return (const Fl_Timestamp)ts; +} /** Return the time in seconds between now and a previously taken time stamp. -- cgit v1.2.3