rteval-loads/SOURCES/0023-stress-dev-voidify-pthread_join-return-we-don-t-care.patch
2022-02-03 05:25:13 +00:00

28 lines
759 B
Diff

From 232b9282522effb16c2940eb403d87079bbd8719 Mon Sep 17 00:00:00 2001
From: Colin Ian King <colin.king@canonical.com>
Date: Thu, 21 May 2020 11:33:00 +0100
Subject: [PATCH 23/28] stress-dev: voidify pthread_join return, we don't care
about it
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
stress-dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stress-dev.c b/stress-dev.c
index b3c156ba5eb9..224bc48c5a3a 100644
--- a/stress-dev.c
+++ b/stress-dev.c
@@ -1607,7 +1607,7 @@ again:
for (i = 0; i < MAX_DEV_THREADS; i++) {
if (ret[i] == 0)
- pthread_join(pthreads[i], NULL);
+ (void)pthread_join(pthreads[i], NULL);
}
stress_hash_delete(dev_hash_table);
_exit(EXIT_SUCCESS);
--
2.21.3