gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 57/208: lib1521: fix missing-variable-declarations


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 57/208: lib1521: fix missing-variable-declarations clang warnings
Date: Wed, 09 Aug 2017 17:34:14 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit 8de8f4eb7e7c276eb2b2a2f7888c88d0779bed39
Author: Marcel Raad <address@hidden>
AuthorDate: Wed Jun 21 18:11:11 2017 +0200

    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(-)

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)
 {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]