Mercurial > hg > orthanc
changeset 3379:974e12006b7d
Removed extern "C" qualifier around function that is internally linked
(extern "C" having thus no effect) AND throws exceptions (thus may NOT be
extern "C").
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 17 May 2019 08:42:24 +0200 |
parents | 596cfabd72c5 |
children | 0528a6c36f3d |
files | Core/HttpClient.cpp |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/HttpClient.cpp Fri May 17 08:36:18 2019 +0200 +++ b/Core/HttpClient.cpp Fri May 17 08:42:24 2019 +0200 @@ -68,22 +68,22 @@ return code; } } +} - // This is a dummy wrapper function to suppress any OpenSSL-related - // problem in valgrind. Inlining is prevented. +// This is a dummy wrapper function to suppress any OpenSSL-related +// problem in valgrind. Inlining is prevented. #if defined(__GNUC__) || defined(__clang__) - __attribute__((noinline)) + __attribute__((noinline)) #endif - static CURLcode OrthancHttpClientPerformSSL(CURL* curl, long* status) - { +static CURLcode OrthancHttpClientPerformSSL(CURL* curl, long* status) +{ #if ORTHANC_ENABLE_SSL == 1 - return GetHttpStatus(curl_easy_perform(curl), curl, status); + return GetHttpStatus(curl_easy_perform(curl), curl, status); #else - throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, - "Orthanc was compiled without SSL support, " - "cannot make HTTPS request"); + throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, + "Orthanc was compiled without SSL support, " + "cannot make HTTPS request"); #endif - } }