mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-24 12:04:40 +00:00
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]"
This commit is contained in:
1 parent
008e107d0f
commit
c86c192f3e
1 file changed
+2
-2
@@ -5730,7 +5730,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service,
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Windows-specific implementation using GetAddrInfoEx with overlapped I/O
|
// Windows-specific implementation using GetAddrInfoEx with overlapped I/O
|
||||||
OVERLAPPED overlapped = {0};
|
OVERLAPPED overlapped = {};
|
||||||
HANDLE event = CreateEventW(nullptr, TRUE, FALSE, nullptr);
|
HANDLE event = CreateEventW(nullptr, TRUE, FALSE, nullptr);
|
||||||
if (!event) { return EAI_FAIL; }
|
if (!event) { return EAI_FAIL; }
|
||||||
|
|
||||||
@@ -5739,7 +5739,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service,
|
|||||||
PADDRINFOEXW result_addrinfo = nullptr;
|
PADDRINFOEXW result_addrinfo = nullptr;
|
||||||
HANDLE cancel_handle = nullptr;
|
HANDLE cancel_handle = nullptr;
|
||||||
|
|
||||||
ADDRINFOEXW hints_ex = {0};
|
ADDRINFOEXW hints_ex = {};
|
||||||
if (hints) {
|
if (hints) {
|
||||||
hints_ex.ai_flags = hints->ai_flags;
|
hints_ex.ai_flags = hints->ai_flags;
|
||||||
hints_ex.ai_family = hints->ai_family;
|
hints_ex.ai_family = hints->ai_family;
|
||||||
|
|||||||
Reference in new issue
Block a user