From: Samuel Thibault Date: Sat, 28 Dec 2019 21:06:27 +0000 (+0100) Subject: util: Do not fail to build on unknown pthread_setname_np X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f52425159b057442cc7b83eb26590479db05067;hp=e45dc931362b90c18b31b23ee1a82e721dbdc38e;p=mesa.git 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 Reviewed-by: Marek Olšák Signed-off-by: Samuel Thibault Tested-by: Marge Bot Part-of: --- 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;