But then when I compiled with Linux gcc, I got this error (as in issue #846),
curl/typecheck-gcc.h:122:13: error: call to ‘_curl_easy_getinfo_err_string’ declared with attribute warning: curl_easy_getinfo expects a pointer to 'char *' for this info [-Werror]
Curiously, there was no warning when I compiled with -O0 flag, without making any changes to the code.
When using any other optimization flags, -O2 for instance, the warning shows up.
curl-config --version libcurl 7.70.0
Linux 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: