mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
The macOS deployment target has been upgraded from 10.15 to 11. Also, a deprecation warning for sprintf() in libuv was suppressed.
23 lines
798 B
Diff
23 lines
798 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tyler Veness <calcmogul@gmail.com>
|
|
Date: Sat, 21 May 2022 22:58:06 -0700
|
|
Subject: [PATCH 08/10] Fix Win32 warning suppression pragma
|
|
|
|
---
|
|
src/win/util.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/win/util.c b/src/win/util.c
|
|
index 7a5dd2ef99ba335a146635b61f8d3eba7ff5ef75..d9888aec7959de4ec49377a71b0dc931e89e5f4e 100644
|
|
--- a/src/win/util.c
|
|
+++ b/src/win/util.c
|
|
@@ -1750,7 +1750,7 @@ int uv_os_uname(uv_utsname_t* buffer) {
|
|
} else {
|
|
/* Silence GetVersionEx() deprecation warning. */
|
|
#ifdef _MSC_VER
|
|
- #pragma warning(suppress : 4996)
|
|
+ #pragma warning(disable : 4996)
|
|
#endif
|
|
if (GetVersionExW(&os_info) == 0) {
|
|
r = uv_translate_sys_error(GetLastError());
|