aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2017-06-21 18:11:11 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2017-06-21 18:11:11 +0200
commit8de8f4eb7e7c276eb2b2a2f7888c88d0779bed39 (patch)
tree71da14820fa3128d368ef6ee619b22e4cebd9a6a /tests/libtest
parentc1dfc8a071c1b1c3c2e9330d485223209ec7051c (diff)
lib1521: fix missing-variable-declarations clang warnings
Declare TU-local variables static.
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib1521.c28
-rw-r--r--tests/libtest/mk-lib1521.pl28
2 files changed, 28 insertions, 28 deletions
diff --git a/tests/libtest/lib1521.c b/tests/libtest/lib1521.c
index 15dee2855..27a380064 100644
--- a/tests/libtest/lib1521.c
+++ b/tests/libtest/lib1521.c
@@ -86,20 +86,20 @@ static int geterr(const char *name, CURLcode val, int lineno)
return (int)val;
}
-curl_progress_callback progresscb;
-curl_write_callback headercb;
-curl_debug_callback debugcb;
-curl_ssl_ctx_callback ssl_ctx_cb;
-curl_ioctl_callback ioctlcb;
-curl_sockopt_callback sockoptcb;
-curl_opensocket_callback opensocketcb;
-curl_seek_callback seekcb;
-curl_sshkeycallback ssh_keycb;
-curl_chunk_bgn_callback chunk_bgn_cb;
-curl_chunk_end_callback chunk_end_cb;
-curl_fnmatch_callback fnmatch_cb;
-curl_closesocket_callback closesocketcb;
-curl_xferinfo_callback xferinfocb;
+static curl_progress_callback progresscb;
+static curl_write_callback headercb;
+static curl_debug_callback debugcb;
+static curl_ssl_ctx_callback ssl_ctx_cb;
+static curl_ioctl_callback ioctlcb;
+static curl_sockopt_callback sockoptcb;
+static curl_opensocket_callback opensocketcb;
+static curl_seek_callback seekcb;
+static curl_sshkeycallback ssh_keycb;
+static curl_chunk_bgn_callback chunk_bgn_cb;
+static curl_chunk_end_callback chunk_end_cb;
+static curl_fnmatch_callback fnmatch_cb;
+static curl_closesocket_callback closesocketcb;
+static curl_xferinfo_callback xferinfocb;
int test(char *URL)
{
diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl
index 95c7135db..d59db0d7a 100644
--- a/tests/libtest/mk-lib1521.pl
+++ b/tests/libtest/mk-lib1521.pl
@@ -117,20 +117,20 @@ static int geterr(const char *name, CURLcode val, int lineno)
return (int)val;
}
-curl_progress_callback progresscb;
-curl_write_callback headercb;
-curl_debug_callback debugcb;
-curl_ssl_ctx_callback ssl_ctx_cb;
-curl_ioctl_callback ioctlcb;
-curl_sockopt_callback sockoptcb;
-curl_opensocket_callback opensocketcb;
-curl_seek_callback seekcb;
-curl_sshkeycallback ssh_keycb;
-curl_chunk_bgn_callback chunk_bgn_cb;
-curl_chunk_end_callback chunk_end_cb;
-curl_fnmatch_callback fnmatch_cb;
-curl_closesocket_callback closesocketcb;
-curl_xferinfo_callback xferinfocb;
+static curl_progress_callback progresscb;
+static curl_write_callback headercb;
+static curl_debug_callback debugcb;
+static curl_ssl_ctx_callback ssl_ctx_cb;
+static curl_ioctl_callback ioctlcb;
+static curl_sockopt_callback sockoptcb;
+static curl_opensocket_callback opensocketcb;
+static curl_seek_callback seekcb;
+static curl_sshkeycallback ssh_keycb;
+static curl_chunk_bgn_callback chunk_bgn_cb;
+static curl_chunk_end_callback chunk_end_cb;
+static curl_fnmatch_callback fnmatch_cb;
+static curl_closesocket_callback closesocketcb;
+static curl_xferinfo_callback xferinfocb;
int test(char *URL)
{