LIU Hao wrote:
在 2024-02-19 02:31, Christian Franke 写道:
Cygwin's cygport now defaults to _FORTIFY_SOURCE=3 but the stable
Cygwin gcc is still 11.4.0 which does not support it. If Cygwin
programs include windows.h, this results in bogus warnings or broken
builds if -Werror is set. The attached
在 2024-02-19 02:31, Christian Franke 写道:
Cygwin's cygport now defaults to _FORTIFY_SOURCE=3 but the stable Cygwin gcc is still 11.4.0 which
does not support it. If Cygwin programs include windows.h, this results in bogus warnings or broken
builds if -Werror is set. The attached patch fixes this.
Cygwin's cygport now defaults to _FORTIFY_SOURCE=3 but the stable Cygwin
gcc is still 11.4.0 which does not support it. If Cygwin programs
include windows.h, this results in bogus warnings or broken builds if
-Werror is set. The attached patch fixes this.
--
Regards,
Christian
From 8af250ab
在 2024-02-18 15:40, Julian Waters 写道:
In file included from C:/msys64/ucrt64/include/windows.h:70,
from try.c:4:
C:/msys64/ucrt64/include/winbase.h:1499:37: error: expected identifier
or '(' before 'LPSTR'
1499 | WINBASEAPI LPSTR WINAPI lstrcpyA (LPSTR lpString1, LPCSTR lpSt