telnet: make MSVC ignore warning for assignment within conditional

Follow-up to d92a5007b6

Closes #10859
This commit is contained in:
Daniel Stenberg 2023-03-28 23:37:25 +02:00
parent b19cbebbb4
commit 9a607fd728
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -770,6 +770,11 @@ static void printsub(struct Curl_easy *data,
}
}
#ifdef _MSC_VER
#pragma warning(push)
/* warning C4706: assignment within conditional expression */
#pragma warning(disable:4706)
#endif
static bool str_is_nonascii(const char *str)
{
char c;
@ -779,6 +784,9 @@ static bool str_is_nonascii(const char *str)
return FALSE;
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
static CURLcode check_telnet_options(struct Curl_easy *data)
{