aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/curlgtk.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-20 11:50:23 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-21 09:47:03 +0200
commitb069815a7ac245c9c794c173de411f3d4d051531 (patch)
treee42298572ba8da3fc3f0485fca11c94489a051b8 /docs/examples/curlgtk.c
parent528b284e4b145ff38c5ab87b4d6daa5d796fd938 (diff)
examples: remove unused variables
Fixes Codacy/CppCheck warnings. Closes
Diffstat (limited to 'docs/examples/curlgtk.c')
-rw-r--r--docs/examples/curlgtk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/examples/curlgtk.c b/docs/examples/curlgtk.c
index 79e89acc6..35b60da63 100644
--- a/docs/examples/curlgtk.c
+++ b/docs/examples/curlgtk.c
@@ -45,7 +45,6 @@ int my_progress_func(GtkWidget *bar,
void *my_thread(void *ptr)
{
CURL *curl;
- CURLcode res;
FILE *outfile;
gchar *url = ptr;
@@ -62,7 +61,7 @@ void *my_thread(void *ptr)
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, my_progress_func);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, Bar);
- res = curl_easy_perform(curl);
+ curl_easy_perform(curl);
fclose(outfile);
/* always cleanup */