blob: 8db2deb0147d2a103e939305fba4125dbe9a5fe7 [file] [log] [blame]
James Kuszmaulcf324122023-01-14 14:07:17 -08001From d83eaeff1f53bc3dede8a46a05cdb3ca94d1aac4 Mon Sep 17 00:00:00 2001
2From: Peter Johnson <johnson.peter@gmail.com>
3Date: Sun, 5 Jun 2022 15:40:35 -0700
4Subject: [PATCH 9/9] Avoid unused variable warning on Mac
5
6---
7 src/unix/darwin.c | 1 +
8 1 file changed, 1 insertion(+)
9
10diff --git a/src/unix/darwin.c b/src/unix/darwin.c
11index eeb35720..ed51a6ad 100644
12--- a/src/unix/darwin.c
13+++ b/src/unix/darwin.c
14@@ -257,6 +257,7 @@ static int uv__get_cpu_speed(uint64_t* speed) {
15 // clock_frequency_str's lifetimes after their initialization
16 {
17 kr = pIOMasterPort(MACH_PORT_NULL, &mach_port);
18+ (void) kr;
19 assert(kr == KERN_SUCCESS);
20 CFMutableDictionaryRef classes_to_match
21 = pIOServiceMatching("IOPlatformDevice");