summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-05-20 16:51:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-20 16:51:54 +0200
commitc12c57cc02698c8007966efa7f77d77d62821c7f (patch)
treee720db370d2600b293f42cce31501f84b36b7755
parentbb79320af7e718abb8bcaa17b406deb06eeb25ac (diff)
downloadcurl-bagder/typecheck-curlinfo-private.tar.gz
typecheck-gcc.h: CURLINFO_PRIVATE does not need a 'char *'bagder/typecheck-curlinfo-private
Reported-by: Billyzou0741326 on github Fixes #5432
-rw-r--r--include/curl/typecheck-gcc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h
index 7fcf54195..f8cb921f2 100644
--- a/include/curl/typecheck-gcc.h
+++ b/include/curl/typecheck-gcc.h
@@ -392,8 +392,9 @@ CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
/* groups of curl_easy_getinfo infos that take the same type of argument */
/* evaluates to true if info expects a pointer to char * argument */
-#define curlcheck_string_info(info) \
- (CURLINFO_STRING < (info) && (info) < CURLINFO_LONG)
+#define curlcheck_string_info(info) \
+ (CURLINFO_STRING < (info) && (info) < CURLINFO_LONG && \
+ (info) != CURLINFO_PRIVATE)
/* evaluates to true if info expects a pointer to long argument */
#define curlcheck_long_info(info) \