examples: remove unused variables

Fixes Codacy/CppCheck warnings.

Closes
This commit is contained in:
Marcel Raad 2019-05-20 11:50:23 +02:00
parent 528b284e4b
commit b069815a7a
No known key found for this signature in database
GPG key ID: 33C416EFAE4D6F02
12 changed files with 26 additions and 35 deletions

View file

@ -90,7 +90,6 @@ static CURLcode my_conv_from_utf8_to_ebcdic(char *buffer, size_t length)
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
@ -104,7 +103,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_CONV_FROM_UTF8_FUNCTION,
my_conv_from_utf8_to_ebcdic);
res = curl_easy_perform(curl);
curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);