summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-07-09 18:43:55 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-08-21 18:53:45 +0200
commit60776a0515c2a8f572902ad5bcc9f63eeaeafa84 (patch)
tree79eb46200916b3c1c4df98fca8c2cb79d2c87acc /docs
parentd5c0351055d5709da8f3e16c91348092fdb481aa (diff)
downloadcurl-60776a0515c2a8f572902ad5bcc9f63eeaeafa84.tar.gz
curl-compilers: enable -Wbad-function-cast on GCC
This warning used to be enabled only for clang as it's a bit stricter on GCC. Silence the remaining occurrences and enable it on GCC too. Closes https://github.com/curl/curl/pull/2747
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/sslbackend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/sslbackend.c b/docs/examples/sslbackend.c
index 1483dcc2e..c1489a9aa 100644
--- a/docs/examples/sslbackend.c
+++ b/docs/examples/sslbackend.c
@@ -57,9 +57,9 @@ int main(int argc, char **argv)
return 0;
}
else if(isdigit(*name)) {
- curl_sslbackend id = (curl_sslbackend)atoi(name);
+ int id = atoi(name);
- result = curl_global_sslset(id, NULL, NULL);
+ result = curl_global_sslset((curl_sslbackend)id, NULL, NULL);
}
else
result = curl_global_sslset(-1, name, NULL);