aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-05-20 16:51:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-21 00:05:42 +0200
commit5d965b48987457eb0db01c2eb65712aec37e49f5 (patch)
treee720db370d2600b293f42cce31501f84b36b7755
parentbb79320af7e718abb8bcaa17b406deb06eeb25ac (diff)
typecheck-gcc.h: CURLINFO_PRIVATE does not need a 'char *'
Reported-by: Billyzou0741326 on github Fixes #5432 Closes #5436
-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) \