From: Daniel Stenberg Date: Mon, 3 Jan 2022 15:04:32 +0000 (+0100) Subject: ftp: disable warning 4706 in MSVC X-Git-Tag: curl-7_81_0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6da5bc63caba8b288978f400aec08514bf03bae7;p=thirdparty%2Fcurl.git ftp: disable warning 4706 in MSVC Follow-up to 21248e052d Disabling "assignment within conditional expression" for MSVC needs to be done before the function starts, for it to take effect. Closes #8218 --- diff --git a/lib/ftp.c b/lib/ftp.c index ce7f9c2037..f6921e4262 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2021, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2022, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -4102,6 +4102,11 @@ static CURLcode ftp_disconnect(struct Curl_easy *data, return CURLE_OK; } +#ifdef _MSC_VER +/* warning C4706: assignment within conditional expression */ +#pragma warning(disable:4706) +#endif + /*********************************************************************** * * ftp_parse_url_path()