mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:23:44 +03:00
appveyor: make VS2010 job build-only, enable Schannel, fix compiler warnings
Tests were consistently flaky for a while. Also fix compiler warnings in `CertOpenStore()` calls for old MSVC compilers: ``` C:/projects/curl/lib/vtls/schannel.c(688): warning C4306: 'type cast' : conversion from 'int' to 'LPCSTR' of greater size C:/projects/curl/lib/vtls/schannel_verify.c(642): warning C4306: 'type cast' : conversion from 'int' to 'LPCSTR' of greater size ``` Ref: https://ci.appveyor.com/project/curlorg/curl/builds/49580310/job/ywu2y44kymgc0nif#L106 Closes #13330
This commit is contained in:
parent
6389ba87b8
commit
b445818586
2 changed files with 14 additions and 4 deletions
|
|
@ -53,6 +53,16 @@
|
|||
#define CERT_ALT_NAME_IP_ADDRESS 8
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1600)
|
||||
/* Workaround for warning:
|
||||
'type cast' : conversion from 'int' to 'LPCSTR' of greater size */
|
||||
#undef CERT_STORE_PROV_MEMORY
|
||||
#undef CERT_STORE_PROV_SYSTEM_A
|
||||
#undef CERT_STORE_PROV_SYSTEM_W
|
||||
#define CERT_STORE_PROV_MEMORY ((LPCSTR)(size_t)2)
|
||||
#define CERT_STORE_PROV_SYSTEM_A ((LPCSTR)(size_t)9)
|
||||
#define CERT_STORE_PROV_SYSTEM_W ((LPCSTR)(size_t)10)
|
||||
#endif
|
||||
|
||||
#ifndef SCH_CREDENTIALS_VERSION
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue