mirror of
https://github.com/curl/curl.git
synced 2026-07-24 20:17:17 +03:00
telnet: make MSVC ignore warning for assignment within conditional
Follow-up to d92a5007b6
Closes #10859
This commit is contained in:
parent
b19cbebbb4
commit
9a607fd728
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue