From 8de8f4eb7e7c276eb2b2a2f7888c88d0779bed39 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Wed, 21 Jun 2017 18:11:11 +0200 Subject: lib1521: fix missing-variable-declarations clang warnings Declare TU-local variables static. --- tests/libtest/lib1521.c | 28 ++++++++++++++-------------- tests/libtest/mk-lib1521.pl | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'tests/libtest') 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) { -- cgit v1.2.3