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.
This commit is contained in:
parent
17b24d552b
commit
a427ed0cb8
|
@ -2323,6 +2323,7 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask);
|
||||||
#include "typecheck-gcc.h"
|
#include "typecheck-gcc.h"
|
||||||
#else
|
#else
|
||||||
#if defined(__STDC__) && (__STDC__ >= 1)
|
#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
|
/* This preprocessor magic that replaces a call with the exact same call is
|
||||||
only done to make sure application authors pass exactly three arguments
|
only done to make sure application authors pass exactly three arguments
|
||||||
to these functions. */
|
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_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_share_setopt(share,opt,param) curl_share_setopt(share,opt,param)
|
||||||
#define curl_multi_setopt(handle,opt,param) curl_multi_setopt(handle,opt,param)
|
#define curl_multi_setopt(handle,opt,param) curl_multi_setopt(handle,opt,param)
|
||||||
|
#endif
|
||||||
#endif /* __STDC__ >= 1 */
|
#endif /* __STDC__ >= 1 */
|
||||||
#endif /* gcc >= 4.3 && !__cplusplus */
|
#endif /* gcc >= 4.3 && !__cplusplus */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue