diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-05-01 12:55:09 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-05-01 12:55:09 +0200 |
commit | 7dd89c1cdcda16945610c4cdef89b5cdb2c183a8 (patch) | |
tree | 071d52fca528b4f6b15903c6432c4a74a6a044a8 /tests/libtest/lib509.c | |
parent | c3513f7e83804d63f3ba8e65d34ada38974d7851 (diff) | |
download | curl-7dd89c1cdcda16945610c4cdef89b5cdb2c183a8.tar.gz |
tests: declare TU-local variables static
This fixes missing-variable-declarations warnings when building with
clang.
Diffstat (limited to 'tests/libtest/lib509.c')
-rw-r--r-- | tests/libtest/lib509.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |