Ignoring -Wreturn-type for C++ programs may lead to crashes. C language is not affected. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96181 https://sourceware.org/pipermail/cygwin/2021-August/249153.html Regards, Christian