Re: [Mingw-w64-public] [PATCH] headers: Always warn if gets() is used

2023-02-14 Thread LIU Hao
在 2023/2/14 20:19, Christian Franke 写道: If gets() is used without _FORTIFY_SOURCE, a warning should IMO be printed regardless of __MINGW_MSVC_COMPAT_WARNINGS etc. It is the same warning text used if _FORTIFY_SOURCE is enabled and gets() is called instead of __gets_chk(). More strict handling

[Mingw-w64-public] [PATCH] headers: Always warn if gets() is used

2023-02-14 Thread Christian Franke
If gets() is used without _FORTIFY_SOURCE, a warning should IMO be printed regardless of __MINGW_MSVC_COMPAT_WARNINGS etc. It is the same warning text used if _FORTIFY_SOURCE is enabled and gets() is called instead of __gets_chk(). More strict handling would also be possible, but I'm not sure