From 5d965b48987457eb0db01c2eb65712aec37e49f5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 20 May 2020 16:51:54 +0200 Subject: typecheck-gcc.h: CURLINFO_PRIVATE does not need a 'char *' Reported-by: Billyzou0741326 on github Fixes #5432 Closes #5436 --- include/curl/typecheck-gcc.h | 5 +++-- 1 file 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) \ -- cgit v1.2.3