On Thursday, 8 July 2021 at 15:57:53 UTC, drug wrote:
08.07.2021 18:46, Виталий Фадеев пишет:
On Thursday, 8 July 2021 at 15:30:07 UTC, drug wrote:
08.07.2021 17:20, Виталий Фадеев пишет:
[...]

I failed to reproduce that. What platform you use and what is the compiler version?

drug, Linux, Ubuntu, x64
# uname -a
Linux unknown 5.11.0-22-generic #23-Ubuntu SMP Thu Jun 17 00:34:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

# dmd --version
DMD64 D Compiler v2.097.0

# dub --version
DUB version 1.26.0, built on Jun  3 2021

#  pkg-config --modversion sdl2
2.0.14

Yes, it's reproducible with dmd 2.097. Trivial fix is deleting that line `../../sdl2/gfm/sdl2/timer.d:69` then it works.

Thank, drug.
I think some like this:

  env DFLAGS=-wi dub run

or like this

  "buildRequirements": [ "allowWarnings" ]

without gfm/sdl2/timer.d editing.

Yes, you right. It can be removed. I will do it.

        try
        {
            SDL2Timer timer = cast(SDL2Timer)param;
            return timer.onTimer(interval);
        }
        catch (Throwable e)
        {
// No Throwable is supposed to cross C callbacks boundaries
            // Crash immediately
            exit(-1);
            return 0; // <--HERE WARMING
        }

It is worked! Thank!


Reply via email to