James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 1 | From d83eaeff1f53bc3dede8a46a05cdb3ca94d1aac4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Johnson <johnson.peter@gmail.com> |
| 3 | Date: Sun, 5 Jun 2022 15:40:35 -0700 |
| 4 | Subject: [PATCH 9/9] Avoid unused variable warning on Mac |
| 5 | |
| 6 | --- |
| 7 | src/unix/darwin.c | 1 + |
| 8 | 1 file changed, 1 insertion(+) |
| 9 | |
| 10 | diff --git a/src/unix/darwin.c b/src/unix/darwin.c |
| 11 | index 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"); |