From a55f160b13b9700e582cbc7b06556f212efe512b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 14 Feb 2026 15:25:38 +0100 Subject: [PATCH] src: simplify declaring `curl_ca_embed` Also to avoid `-Wunused-macros` warnings. Follow-up to 8a3740bc8e558b9a9d4a652b74cf27a0961d7010 #14059 Cherry-picked from #20593 Closes #20601 --- src/config2setopts.c | 7 ------- src/mk-file-embed.pl | 6 ++---- src/tool_operate.c | 7 ------- src/tool_setup.h | 4 ++++ 4 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/config2setopts.c b/src/config2setopts.c index 4ea65f453c..ba9b7c40f1 100644 --- a/src/config2setopts.c +++ b/src/config2setopts.c @@ -222,13 +222,6 @@ static CURLcode ssh_setopts(struct OperationConfig *config, CURL *curl) return CURLE_OK; /* ignore if SHA256 did not work */ } -#ifdef CURL_CA_EMBED -#ifndef CURL_DECLARED_CURL_CA_EMBED -#define CURL_DECLARED_CURL_CA_EMBED -extern const unsigned char curl_ca_embed[]; -#endif -#endif - static long tlsversion(unsigned char mintls, unsigned char maxtls) { diff --git a/src/mk-file-embed.pl b/src/mk-file-embed.pl index fcd8e04136..9f3a1b3976 100755 --- a/src/mk-file-embed.pl +++ b/src/mk-file-embed.pl @@ -39,10 +39,8 @@ print <