[master] c0acb4e flexelint 534: Ignoring return value of function

Nils Goroll nils.goroll at uplex.de
Thu Apr 5 10:08:09 UTC 2018


commit c0acb4e3b9c31d3bd4252f31913e7375d1bc396a
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Apr 5 11:43:39 2018 +0200

    flexelint 534: Ignoring return value of function

diff --git a/bin/varnishd/cache/cache_main.c b/bin/varnishd/cache/cache_main.c
index e2381a4..ad7e312 100644
--- a/bin/varnishd/cache/cache_main.c
+++ b/bin/varnishd/cache/cache_main.c
@@ -102,14 +102,14 @@ THR_SetName(const char *name)
 
 	AZ(pthread_setspecific(name_key, name));
 #if defined(HAVE_PTHREAD_SET_NAME_NP)
-	pthread_set_name_np(pthread_self(), name);
+	(void)pthread_set_name_np(pthread_self(), name);
 #elif defined(HAVE_PTHREAD_SETNAME_NP)
 #if defined(__APPLE__)
-	pthread_setname_np(name);
+	(void)pthread_setname_np(name);
 #elif defined(__NetBSD__)
-	pthread_setname_np(pthread_self(), "%s", (char *)(uintptr_t)name);
+	(void)pthread_setname_np(pthread_self(), "%s", (char *)(uintptr_t)name);
 #else
-	pthread_setname_np(pthread_self(), name);
+	(void)pthread_setname_np(pthread_self(), name);
 #endif
 #endif
 }


More information about the varnish-commit mailing list