From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 5 Jun 2022 15:40:35 -0700 Subject: [PATCH 09/10] 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 index eeb35720f55bf26363a064443bd02fb9aae682a4..ed51a6ad61ca70b06c5e3c5b3a12f1109ac47083 100644 --- 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");