mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
cookie: avoid the C1001 internal compiler error with MSVC 14
Fixes #6112 Closes #6135
This commit is contained in:
parent
8fb9f43f81
commit
e2075f2337
@ -264,6 +264,11 @@ static const char *get_top_domain(const char * const domain, size_t *outlen)
|
||||
return first? first: domain;
|
||||
}
|
||||
|
||||
/* Avoid C1001, an "internal error" with MSVC14 */
|
||||
#if defined(_MSC_VER) && (_MSC_VER == 1900)
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* A case-insensitive hash for the cookie domains.
|
||||
*/
|
||||
@ -280,6 +285,10 @@ static size_t cookie_hash_domain(const char *domain, const size_t len)
|
||||
return (h % COOKIE_HASH_SIZE);
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER == 1900)
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Hash this domain.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user