Mesa (master): util: Do not fail to build on unknown pthread_setname_np
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 22 23:12:40 UTC 2020
Module: Mesa
Branch: master
Commit: 4f52425159b057442cc7b83eb26590479db05067
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f52425159b057442cc7b83eb26590479db05067
Author: Samuel Thibault <samuel.thibault at ens-lyon.org>
Date: Sat Dec 28 22:06:27 2019 +0100
util: Do not fail to build on unknown pthread_setname_np
This is only used for debugging, so better making porting on various systems
less hard.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Signed-off-by: Samuel Thibault <samuel.thibault at ens-lyon.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3229>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3229>
---
src/util/u_thread.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index 5bb06608fc9..1f2a104c3fd 100644
--- a/src/util/u_thread.h
+++ b/src/util/u_thread.h
@@ -84,7 +84,7 @@ static inline void u_thread_setname( const char *name )
#elif DETECT_OS_HAIKU
rename_thread(find_thread(NULL), name);
#else
-#error Not sure how to call pthread_setname_np
+#warning Not sure how to call pthread_setname_np
#endif
#endif
(void)name;
More information about the mesa-commit
mailing list