From c86c192f3e86ab2ccb5062c070274102a64780c3 Mon Sep 17 00:00:00 2001 From: NsPro04 <64797367+NsPro04@users.noreply.github.com> Date: Fri, 29 May 2026 04:19:33 +0600 Subject: [PATCH] Fix: (#2459) "httplib.h(5733,29): warning : missing field 'InternalHigh' initializer [-Wmissing-field-initializers]" "httplib.h(5742,28): warning : missing field 'ai_family' initializer [-Wmissing-field-initializers]" --- httplib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httplib.h b/httplib.h index 0e7e2aa..8199b6c 100644 --- a/httplib.h +++ b/httplib.h @@ -5730,7 +5730,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service, #ifdef _WIN32 // Windows-specific implementation using GetAddrInfoEx with overlapped I/O - OVERLAPPED overlapped = {0}; + OVERLAPPED overlapped = {}; HANDLE event = CreateEventW(nullptr, TRUE, FALSE, nullptr); if (!event) { return EAI_FAIL; } @@ -5739,7 +5739,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service, PADDRINFOEXW result_addrinfo = nullptr; HANDLE cancel_handle = nullptr; - ADDRINFOEXW hints_ex = {0}; + ADDRINFOEXW hints_ex = {}; if (hints) { hints_ex.ai_flags = hints->ai_flags; hints_ex.ai_family = hints->ai_family;