2022-08-18 13:57:49 -07:00
|
|
|
From d83eaeff1f53bc3dede8a46a05cdb3ca94d1aac4 Mon Sep 17 00:00:00 2001
|
2022-06-09 23:30:16 -07:00
|
|
|
From: Peter Johnson <johnson.peter@gmail.com>
|
|
|
|
|
Date: Sun, 5 Jun 2022 15:40:35 -0700
|
|
|
|
|
Subject: [PATCH 9/9] Avoid unused variable warning on Mac
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
src/unix/darwin.c | 1 +
|
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
|
|
diff --git a/src/unix/darwin.c b/src/unix/darwin.c
|
2022-08-18 13:57:49 -07:00
|
|
|
index eeb35720..ed51a6ad 100644
|
2022-06-09 23:30:16 -07:00
|
|
|
--- a/src/unix/darwin.c
|
|
|
|
|
+++ b/src/unix/darwin.c
|
|
|
|
|
@@ -257,6 +257,7 @@ static int uv__get_cpu_speed(uint64_t* speed) {
|
|
|
|
|
// clock_frequency_str's lifetimes after their initialization
|
|
|
|
|
{
|
|
|
|
|
kr = pIOMasterPort(MACH_PORT_NULL, &mach_port);
|
|
|
|
|
+ (void) kr;
|
|
|
|
|
assert(kr == KERN_SUCCESS);
|
|
|
|
|
CFMutableDictionaryRef classes_to_match
|
|
|
|
|
= pIOServiceMatching("IOPlatformDevice");
|