diff options
Diffstat (limited to 'tests/gtests')
-rw-r--r-- | tests/gtests/blenlib/BLI_memiter_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gtests/blenlib/BLI_memiter_test.cc b/tests/gtests/blenlib/BLI_memiter_test.cc index c1c07dc7540..d92daefff3b 100644 --- a/tests/gtests/blenlib/BLI_memiter_test.cc +++ b/tests/gtests/blenlib/BLI_memiter_test.cc @@ -17,7 +17,7 @@ TEST(memiter, Nop) BLI_memiter_destroy(mi); } -void memiter_empty_test(int num_elems, const int chunk_size) +static void memiter_empty_test(int num_elems, const int chunk_size) { BLI_memiter *mi = BLI_memiter_create(chunk_size); void *data; @@ -39,7 +39,7 @@ void memiter_empty_test(int num_elems, const int chunk_size) } #define MEMITER_NUMBER_TEST_FN(fn, number_type) \ - void fn(int num_elems, const int chunk_size) \ + static void fn(int num_elems, const int chunk_size) \ { \ BLI_memiter *mi = BLI_memiter_create(chunk_size); \ number_type *data; \ @@ -65,7 +65,7 @@ MEMITER_NUMBER_TEST_FN(memiter_short_test, short) MEMITER_NUMBER_TEST_FN(memiter_int_test, int) MEMITER_NUMBER_TEST_FN(memiter_long_test, int64_t) -void memiter_string_test(const char *strings[], const int chunk_size) +static void memiter_string_test(const char *strings[], const int chunk_size) { BLI_memiter *mi = BLI_memiter_create(chunk_size); char *data; @@ -95,7 +95,7 @@ void memiter_string_test(const char *strings[], const int chunk_size) BLI_memiter_destroy(mi); } -void memiter_words10k_test(const char split_char, const int chunk_size) +static void memiter_words10k_test(const char split_char, const int chunk_size) { const int words_len = sizeof(words10k) - 1; char *words = BLI_strdupn(words10k, words_len); |