Microsoft considers these POSIX function names to be deprecated, and provides alternative names starting with an underscore. A deprecation warning is raised if the old names are used, which can alternatively be disabled with the _CRT_NONSTDC_NO_WARNINGS macro.
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?view=msvc-170#posix-function-names Signed-off-by: Antonin Décimo <[email protected]> --- mingw-w64-libraries/winpthreads/src/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-libraries/winpthreads/src/thread.c b/mingw-w64-libraries/winpthreads/src/thread.c index f48923e29..10ca85e47 100644 --- a/mingw-w64-libraries/winpthreads/src/thread.c +++ b/mingw-w64-libraries/winpthreads/src/thread.c @@ -1843,7 +1843,7 @@ pthread_setname_np (pthread_t thread, const char *name) || tv->h == INVALID_HANDLE_VALUE) return ESRCH; - stored_name = strdup (name); + stored_name = _strdup (name); if (stored_name == NULL) return ENOMEM; -- 2.43.0 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
