From a427ed0cb86f56ebd84820cb0c6f3cfd2ccfa851 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 8 Nov 2014 13:30:02 -0500 Subject: [PATCH] curl: Skip sanity check that triggers Clang warning Defining curl APIs as forwarding macros triggers Clang warnings with -Wdisabled-macro-expansion. Skip this sanity check. --- Utilities/cmcurl/include/curl/curl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utilities/cmcurl/include/curl/curl.h b/Utilities/cmcurl/include/curl/curl.h index 2792a96f4..40d0b812d 100644 --- a/Utilities/cmcurl/include/curl/curl.h +++ b/Utilities/cmcurl/include/curl/curl.h @@ -2323,6 +2323,7 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask); #include "typecheck-gcc.h" #else #if defined(__STDC__) && (__STDC__ >= 1) +#if 0 /* Triggers clang -Wdisabled-macro-expansion, skip for CMake. */ /* This preprocessor magic that replaces a call with the exact same call is only done to make sure application authors pass exactly three arguments to these functions. */ @@ -2330,6 +2331,7 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask); #define curl_easy_getinfo(handle,info,arg) curl_easy_getinfo(handle,info,arg) #define curl_share_setopt(share,opt,param) curl_share_setopt(share,opt,param) #define curl_multi_setopt(handle,opt,param) curl_multi_setopt(handle,opt,param) +#endif #endif /* __STDC__ >= 1 */ #endif /* gcc >= 4.3 && !__cplusplus */