File 574.patch of Package libdispatch
From 6ffc3ed464fa7930ac59b77d534a0607ef95c57f Mon Sep 17 00:00:00 2001
From: Ron Olson <tachoknight@gmail.com>
Date: Fri, 17 Sep 2021 12:21:34 -0500
Subject: [PATCH 1/2] Added no-op for variable to avoid a warning treated as
error with Clang 13
---
tests/bsdtestharness.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/bsdtestharness.c b/tests/bsdtestharness.c
index ca52d6e97..38ef26ac9 100644
--- a/tests/bsdtestharness.c
+++ b/tests/bsdtestharness.c
@@ -152,6 +152,7 @@ main(int argc, char *argv[])
assert(pid > 0);
#if defined(__linux__)
+ (void)to;
int status;
struct rusage usage;
struct timeval tv_stop, tv_wall;
From 6656bb31079e974c5886dcb81d60d785fb5874e0 Mon Sep 17 00:00:00 2001
From: Ron Olson <tachoknight@gmail.com>
Date: Tue, 21 Sep 2021 09:33:31 -0500
Subject: [PATCH 2/2] Found another spot where no-ops are necessary to keep
Clang 13 happy
---
tests/dispatch_apply.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/dispatch_apply.c b/tests/dispatch_apply.c
index fa7fab53f..2c52da993 100644
--- a/tests/dispatch_apply.c
+++ b/tests/dispatch_apply.c
@@ -57,6 +57,8 @@ static void busythread(void *ignored)
/* prevent i and j been optimized out */
volatile uint64_t i = 0, j = 0;
+ (void)i;
+ (void)j;
OSAtomicIncrement32(&busy_threads_started);
while(!all_done)