From 23e0751b2ee32f7e98c4fd7fcf652fab8b11261e Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 11 Nov 2021 10:58:47 -0500 Subject: [PATCH] fix clang build --- common/kicad_curl/kicad_curl_easy.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/kicad_curl/kicad_curl_easy.cpp b/common/kicad_curl/kicad_curl_easy.cpp index 548cf52456..ac7f16ae46 100644 --- a/common/kicad_curl/kicad_curl_easy.cpp +++ b/common/kicad_curl/kicad_curl_easy.cpp @@ -209,15 +209,17 @@ bool KICAD_CURL_EASY::SetURL( const std::string& aURL ) // So we also check and set any proxy config here if( KIPLATFORM::ENV::GetSystemProxyConfig( aURL, cfg ) ) { - curl_easy_setopt( m_CURL, CURLOPT_PROXY, cfg.host.c_str() ); + curl_easy_setopt( m_CURL, CURLOPT_PROXY, static_cast( cfg.host.c_str() ) ); if( cfg.username != "" ) { - curl_easy_setopt( m_CURL, CURLOPT_PROXYUSERNAME, cfg.username.c_str() ); + curl_easy_setopt( m_CURL, CURLOPT_PROXYUSERNAME, + static_cast( cfg.username.c_str() ) ); } if( cfg.password != "" ) { - curl_easy_setopt( m_CURL, CURLOPT_PROXYPASSWORD, cfg.password.c_str() ); + curl_easy_setopt( m_CURL, CURLOPT_PROXYPASSWORD, + static_cast( cfg.password.c_str() ) ); } }