Files
allwpilib/upstream_utils/libuv_patches/0009-Avoid-unused-variable-warning-on-Mac.patch
Tyler Veness 44abc8dfa6 [upstream_utils] Remove git version from upstream patches (#4351)
This reduces commit noise when other git versions are used. The version
was removed by passing `--no-signature` to `git format-patch` which is
now documented in the readme.
2022-08-13 18:31:26 -07:00

22 lines
740 B
Diff

From a8a0297596aa58e122b30017ad1f7c4cb846e25c Mon Sep 17 00:00:00 2001
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
index eeb3572..ed51a6a 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");