Re: "cannot convert to a pointer type" error repeated tens of times

2022-02-12 Thread Marc Glisse
On Sat, 12 Feb 2022, Andrea Monaco via Gcc wrote: #include int main (void) { float a; curl_easy_setopt (NULL, 0, (void *) a); } with "gcc -c bug.c" gives bug.c: In function ‘main’: bug.c:15:3: error: cannot convert to a pointer type curl_easy_setopt (NULL, 0, (void *) a);

"cannot convert to a pointer type" error repeated tens of times

2022-02-12 Thread Andrea Monaco via Gcc
Hello, I may have hit a bug while using libcurl, a common library for network operations, on gcc 8.3.0. Building this program #include int main (void) { float a; curl_easy_setopt (NULL, 0, (void *) a); } with "gcc -c bug.c" gives bug.c: In function ‘main’: bug.c