James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame] | 2 | From: Tyler Veness <calcmogul@gmail.com> |
| 3 | Date: Sat, 21 May 2022 22:58:06 -0700 |
Maxwell Henderson | 80bec32 | 2024-01-09 15:48:44 -0800 | [diff] [blame^] | 4 | Subject: [PATCH 6/9] Fix Win32 warning suppression pragma |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame] | 5 | |
| 6 | --- |
| 7 | src/win/util.c | 2 +- |
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 | |
| 10 | diff --git a/src/win/util.c b/src/win/util.c |
Maxwell Henderson | 80bec32 | 2024-01-09 15:48:44 -0800 | [diff] [blame^] | 11 | index f505cfad4987768fa6470ca27612312c2ba0729d..8828857db76a54d6e184c7f5714a091e92eba8ed 100644 |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame] | 12 | --- a/src/win/util.c |
| 13 | +++ b/src/win/util.c |
Maxwell Henderson | 80bec32 | 2024-01-09 15:48:44 -0800 | [diff] [blame^] | 14 | @@ -1502,7 +1502,7 @@ int uv_os_uname(uv_utsname_t* buffer) { |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame] | 15 | } 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()); |