2
0
mirror of https://github.com/curl/curl.git synced 2025-04-12 16:20:35 +08:00

test1545: disable deprecation warnings

Fixes:
https://ci.appveyor.com/project/curlorg/curl/builds/48631551/job/bhx74e0i66yrp6pk#L1205

Same with details:
https://ci.appveyor.com/project/curlorg/curl/builds/48662893/job/ol8a78q9gmilb6wt#L1263
```
tests/libtest/lib1545.c:38:3: error: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Werror=deprecated-declarations]
   38 |   curl_formadd(&m_formpost, &lastptr, CURLFORM_COPYNAME, "file",
      |   ^~~~~~~~~~~~
[...]
```

Follow-up to 07a3cd83e0456ca17dfd8c3104af7cf45b7a1ff5 

Fixes 
Closes 
This commit is contained in:
Viktor Szakats 2023-12-02 15:59:21 +00:00
parent 586e3c19cd
commit 0f10360073
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

@ -21,6 +21,9 @@
* SPDX-License-Identifier: curl
*
***************************************************************************/
#ifndef CURL_DISABLE_DEPRECATION
#define CURL_DISABLE_DEPRECATION /* Using and testing the form api */
#endif
#include "test.h"
int test(char *URL)