From: James Turner Date: Fri, 3 Jun 2016 13:40:55 +0000 (-0500) Subject: Fix a warning with GCC X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c04b4248388149ec6195b38c3954592201ea9aaa;p=simgear.git Fix a warning with GCC --- diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index e881d243..2e3192f6 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -306,7 +306,9 @@ void Client::cancelRequest(const Request_ptr &r, std::string reason) } CURLMcode err = curl_multi_remove_handle(d->curlMulti, it->second); - assert(err == CURLM_OK); + if (err != CURLM_OK) { + SG_LOG(SG_IO, SG_WARN, "curl_multi_remove_handle failed:" << err); + } // clear the request pointer form the curl-easy object curl_easy_setopt(it->second, CURLOPT_PRIVATE, 0);