[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 48/254: tests: declare TU-local variables static
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 48/254: tests: declare TU-local variables static |
Date: |
Sat, 17 Jun 2017 16:51:20 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit 7dd89c1cdcda16945610c4cdef89b5cdb2c183a8
Author: Marcel Raad <address@hidden>
AuthorDate: Mon May 1 12:55:09 2017 +0200
tests: declare TU-local variables static
This fixes missing-variable-declarations warnings when building with
clang.
---
tests/libtest/lib1509.c | 2 +-
tests/libtest/lib1531.c | 4 ++--
tests/libtest/lib1900.c | 16 ++++++++--------
tests/libtest/lib509.c | 10 +++++-----
tests/libtest/lib540.c | 2 +-
tests/unit/unit1396.c | 2 +-
tests/unit/unit1600.c | 2 +-
7 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/tests/libtest/lib1509.c b/tests/libtest/lib1509.c
index df428a0d0..ccb668304 100644
--- a/tests/libtest/lib1509.c
+++ b/tests/libtest/lib1509.c
@@ -28,7 +28,7 @@
size_t WriteOutput(void *ptr, size_t size, size_t nmemb, void *stream);
size_t WriteHeader(void *ptr, size_t size, size_t nmemb, void *stream);
-unsigned long realHeaderSize = 0;
+static unsigned long realHeaderSize = 0;
int test(char *URL)
{
diff --git a/tests/libtest/lib1531.c b/tests/libtest/lib1531.c
index b21d06733..e6386b264 100644
--- a/tests/libtest/lib1531.c
+++ b/tests/libtest/lib1531.c
@@ -27,8 +27,8 @@
#define TEST_HANG_TIMEOUT 60 * 1000
-char const testData[] = ".abc\0xyz";
-off_t const testDataSize = sizeof(testData) - 1;
+static char const testData[] = ".abc\0xyz";
+static off_t const testDataSize = sizeof(testData) - 1;
int test(char *URL)
{
diff --git a/tests/libtest/lib1900.c b/tests/libtest/lib1900.c
index 4502fc0d6..d72e3e6a2 100644
--- a/tests/libtest/lib1900.c
+++ b/tests/libtest/lib1900.c
@@ -29,14 +29,14 @@
#define MAX_URLS 200
#define MAX_BLACKLIST 20
-int urltime[MAX_URLS];
-char *urlstring[MAX_URLS];
-CURL *handles[MAX_URLS];
-char *site_blacklist[MAX_BLACKLIST];
-char *server_blacklist[MAX_BLACKLIST];
-int num_handles;
-int blacklist_num_servers;
-int blacklist_num_sites;
+static int urltime[MAX_URLS];
+static char *urlstring[MAX_URLS];
+static CURL *handles[MAX_URLS];
+static char *site_blacklist[MAX_BLACKLIST];
+static char *server_blacklist[MAX_BLACKLIST];
+static int num_handles;
+static int blacklist_num_servers;
+static int blacklist_num_sites;
static size_t
write_callback(void *contents, size_t size, size_t nmemb, void *userp)
diff --git a/tests/libtest/lib509.c b/tests/libtest/lib509.c
index 941ef7206..4f3e072ae 100644
--- a/tests/libtest/lib509.c
+++ b/tests/libtest/lib509.c
@@ -36,11 +36,11 @@
#include "memdebug.h"
*/
-int seen_malloc = 0;
-int seen_free = 0;
-int seen_realloc = 0;
-int seen_strdup = 0;
-int seen_calloc = 0;
+static int seen_malloc = 0;
+static int seen_free = 0;
+static int seen_realloc = 0;
+static int seen_strdup = 0;
+static int seen_calloc = 0;
void *custom_malloc(size_t size);
void custom_free(void *ptr);
diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c
index f5d89c41d..ac862092f 100644
--- a/tests/libtest/lib540.c
+++ b/tests/libtest/lib540.c
@@ -46,7 +46,7 @@
#define NUM_HANDLES 2
-CURL *eh[NUM_HANDLES];
+static CURL *eh[NUM_HANDLES];
static int init(int num, CURLM *cm, const char *url, const char *userpwd,
struct curl_slist *headers)
diff --git a/tests/unit/unit1396.c b/tests/unit/unit1396.c
index 84a5162dd..f3275fdb6 100644
--- a/tests/unit/unit1396.c
+++ b/tests/unit/unit1396.c
@@ -21,7 +21,7 @@
***************************************************************************/
#include "curlcheck.h"
-CURL *hnd;
+static CURL *hnd;
static CURLcode unit_setup(void)
{
diff --git a/tests/unit/unit1600.c b/tests/unit/unit1600.c
index af0ad8435..11d718d35 100644
--- a/tests/unit/unit1600.c
+++ b/tests/unit/unit1600.c
@@ -24,7 +24,7 @@
#include "urldata.h"
#include "curl_ntlm_core.h"
-CURL *easy;
+static CURL *easy;
static CURLcode unit_setup(void)
{
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 112/254: libtest: fix MinGW-w64 warnings, (continued)
- [GNUnet-SVN] [gnurl] 112/254: libtest: fix MinGW-w64 warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 91/254: runtests: add -o to run test cases in scrambled order, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 115/254: tests: give each stunnel.conf file a unique name, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 113/254: tftpd: fix signed/unsigned mismatch warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 79/254: typecheck-gcc: add missing string options, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 83/254: CURLINFO_REDIRECT_URL.3: add example, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 65/254: upload: UPLOAD_BUFSIZE is now for the upload buffer, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 121/254: tool: fix remaining -Wcast-qual warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 132/254: FAQ: add 7.4 to toc, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 126/254: multi: use a fixed array of timers instead of malloc, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 48/254: tests: declare TU-local variables static,
gnunet <=
- [GNUnet-SVN] [gnurl] 119/254: tests: list the primary server first in the server section, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 134/254: THANKS: add a few missing names, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 109/254: runtests: fix "use of undefined value" warning in -R handling, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 31/254: Makefile: fix make dist, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 59/254: http2: use the correct set buffer size, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 95/254: tests/server: run checksrc by default in debug-builds, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 85/254: test559: verify use of minimum CURLOPT_BUFFERSIZE, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 45/254: examples: declare TU-local variables static, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 125/254: multi: assign IDs to all timers and make each timer singleton, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 155/254: cmake: Add CURL_CA_FALLBACK to curl_config.h.cmake, gnunet, 2017/06/17