mirror of
https://github.com/curl/curl.git
synced 2025-01-12 13:55:11 +08:00
811c799f2d
Even though `PICKY_COMPILER=ON` is the default, warnings were not enabled when using llvm/clang, because `CMAKE_COMPILER_IS_CLANG` was always false (in my tests at least). This is the single use of this variable in curl, and in a different place we already use `CMAKE_C_COMPILER_ID MATCHES "Clang"`, which works as expected, so change the condition to use that instead. Also fix the warnings uncovered by the above: - lib: add casts to silence clang warnings - schannel: add casts to silence clang warnings in ALPN code Assuming the code is correct, solve the warnings with a cast. This particular build case isn't CI tested. There is a chance the warning is relevant for some platforms, perhaps Windows 32-bit ARM7. Closes #9783 |
||
---|---|---|
.. | ||
bearssl.c | ||
bearssl.h | ||
gskit.c | ||
gskit.h | ||
gtls.c | ||
gtls.h | ||
hostcheck.c | ||
hostcheck.h | ||
keylog.c | ||
keylog.h | ||
mbedtls_threadlock.c | ||
mbedtls_threadlock.h | ||
mbedtls.c | ||
mbedtls.h | ||
nss.c | ||
nssg.h | ||
openssl.c | ||
openssl.h | ||
rustls.c | ||
rustls.h | ||
schannel_verify.c | ||
schannel.c | ||
schannel.h | ||
sectransp.c | ||
sectransp.h | ||
vtls.c | ||
vtls.h | ||
wolfssl.c | ||
wolfssl.h | ||
x509asn1.c | ||
x509asn1.h |