]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
telnet: make MSVC ignore warning for assignment within conditional
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 Mar 2023 21:37:25 +0000 (23:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 29 Mar 2023 11:07:17 +0000 (13:07 +0200)
Follow-up to d92a5007b60e0af7d

Closes #10859

lib/telnet.c

index 0f848380060c9e09c1625522025d3a8ba1ab4100..0cfde0f0d401c00cc2fb02f407d1c62d48faad79 100644 (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)
 {