Open JoakimSoderberg opened 8 years ago
Hello, I got some of these warnings when compiling:
HTTPClient/HTTPClient.cpp:412:18: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] lastReturnCode = NULL;
Since int HTTPClient::skipHeader(FILE* stream) returns an int...
int HTTPClient::skipHeader(FILE* stream)
int
Also usually NULL is defined as 0, so using that as an error case when 0 is also returned as success does not make much sense.
However, the return value for skipHeader is never checked anywhere.... so this is just to shut up the compiler mostly.
Hello, I got some of these warnings when compiling:
Since
int HTTPClient::skipHeader(FILE* stream)
returns anint
...Also usually NULL is defined as 0, so using that as an error case when 0 is also returned as success does not make much sense.
However, the return value for skipHeader is never checked anywhere.... so this is just to shut up the compiler mostly.