diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-01-03 16:04:32 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-03 17:05:13 +0100 |
commit | 6da5bc63caba8b288978f400aec08514bf03bae7 (patch) | |
tree | f8a02b24dc836506dc12d7a00da1e0ec51bd9c3e /lib | |
parent | ee2ca5826bea7c061f3525cfc6b542c35d41fa50 (diff) | |
download | curl-6da5bc63caba8b288978f400aec08514bf03bae7.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, 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() |