diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-03-28 23:37:25 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-03-29 13:07:17 +0200 |
commit | 9a607fd728c5c7fce6695f612545adc9201ffe4b (patch) | |
tree | 95b7b6cc04ec539b00a2b610193f6461be0e8584 | |
parent | b19cbebbb46800faebf9690103cf85e408c4a2c6 (diff) | |
download | curl-9a607fd728c5c7fce6695f612545adc9201ffe4b.tar.gz |
telnet: make MSVC ignore warning for assignment within conditional
Follow-up to d92a5007b60e0af7d
Closes #10859
-rw-r--r-- | lib/telnet.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index 0f8483800..0cfde0f0d 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -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) { |