From: Viktor Szakats Date: Sat, 14 Jun 2025 23:21:14 +0000 (+0200) Subject: tidy-up: two comments X-Git-Tag: curl-8_15_0~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b016cec5528542d701fe630d7ee17f0d53fe3d8;p=thirdparty%2Fcurl.git tidy-up: two comments Follow-up to 2c27a67daa1b76859c18d63e4e1f528db05b5e13 #17590 Follow-up to df1ff17f88a623b12c13ffd893ca4ac47c5f04d1 #17418 Closes #17624 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d9291009c..582222a7be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,7 +290,7 @@ endif() option(CURL_CLANG_TIDY "Run the build through clang-tidy" OFF) if(CURL_CLANG_TIDY) # clang-tidy is not looking into #included sources, thus not compatible with - # unity builds and test bundles. + # unity builds. Make test bundles compatible by embedding the source code. set(CMAKE_UNITY_BUILD OFF) set(CURL_MK_UNITY_OPTION "--embed") set(_tidy_checks "") diff --git a/lib/vtls/schannel_verify.c b/lib/vtls/schannel_verify.c index 6634cb7883..7db13f2a25 100644 --- a/lib/vtls/schannel_verify.c +++ b/lib/vtls/schannel_verify.c @@ -94,8 +94,8 @@ struct cert_chain_engine_config_win8 { DWORD dwExclusiveFlags; }; +/* Not defined before mingw-w64 4.0.0 */ #ifndef CERT_CHAIN_EXCLUSIVE_ENABLE_CA_FLAG -/* Not defined for any MINGW build */ #define CERT_CHAIN_EXCLUSIVE_ENABLE_CA_FLAG 0x00000001 #endif @@ -115,7 +115,6 @@ struct cert_chain_engine_config_win7 { HCERTSTORE hExclusiveTrustedPeople; }; - #ifndef UNDER_CE static int is_cr_or_lf(char c) {