blob: fe0015903776b0ff3b54515ba977a7559c869e56 [file] [log] [blame]
James Kuszmaulb13e13f2023-11-22 20:44:04 -08001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
James Kuszmaulcf324122023-01-14 14:07:17 -08002From: Tyler Veness <calcmogul@gmail.com>
3Date: Sat, 21 May 2022 22:58:06 -0700
Maxwell Henderson80bec322024-01-09 15:48:44 -08004Subject: [PATCH 6/9] Fix Win32 warning suppression pragma
James Kuszmaulcf324122023-01-14 14:07:17 -08005
6---
7 src/win/util.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/src/win/util.c b/src/win/util.c
Maxwell Henderson80bec322024-01-09 15:48:44 -080011index f505cfad4987768fa6470ca27612312c2ba0729d..8828857db76a54d6e184c7f5714a091e92eba8ed 100644
James Kuszmaulcf324122023-01-14 14:07:17 -080012--- a/src/win/util.c
13+++ b/src/win/util.c
Maxwell Henderson80bec322024-01-09 15:48:44 -080014@@ -1502,7 +1502,7 @@ int uv_os_uname(uv_utsname_t* buffer) {
James Kuszmaulcf324122023-01-14 14:07:17 -080015 } else {
16 /* Silence GetVersionEx() deprecation warning. */
17 #ifdef _MSC_VER
18- #pragma warning(suppress : 4996)
19+ #pragma warning(disable : 4996)
20 #endif
21 if (GetVersionExW(&os_info) == 0) {
22 r = uv_translate_sys_error(GetLastError());