diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtests/blenlib/BLI_kdopbvh_test.cc | 2 | ||||
-rw-r--r-- | tests/gtests/blenlib/BLI_map_test.cc | 2 | ||||
-rw-r--r-- | tests/gtests/blenlib/BLI_string_test.cc | 2 | ||||
-rw-r--r-- | tests/gtests/blenlib/BLI_vector_test.cc | 2 | ||||
-rw-r--r-- | tests/gtests/blenlib/stubs/bf_intern_eigen_stubs.h | 7 |
5 files changed, 11 insertions, 4 deletions
diff --git a/tests/gtests/blenlib/BLI_kdopbvh_test.cc b/tests/gtests/blenlib/BLI_kdopbvh_test.cc index bd35a491550..ac0d477ee14 100644 --- a/tests/gtests/blenlib/BLI_kdopbvh_test.cc +++ b/tests/gtests/blenlib/BLI_kdopbvh_test.cc @@ -50,7 +50,7 @@ TEST(kdopbvh, Single) BLI_bvhtree_free(tree); } -void optimal_check_callback(void *userdata, int index, const float co[3], BVHTreeNearest *nearest) +static void optimal_check_callback(void *userdata, int index, const float co[3], BVHTreeNearest *nearest) { float(*points)[3] = (float(*)[3])userdata; diff --git a/tests/gtests/blenlib/BLI_map_test.cc b/tests/gtests/blenlib/BLI_map_test.cc index 61e7a603d13..e91f809abba 100644 --- a/tests/gtests/blenlib/BLI_map_test.cc +++ b/tests/gtests/blenlib/BLI_map_test.cc @@ -156,7 +156,7 @@ TEST(map, ItemIterator) EXPECT_TRUE(values.contains(0.0f)); } -float return_42() +static float return_42() { return 42.0f; } diff --git a/tests/gtests/blenlib/BLI_string_test.cc b/tests/gtests/blenlib/BLI_string_test.cc index d69cb519494..257f478622f 100644 --- a/tests/gtests/blenlib/BLI_string_test.cc +++ b/tests/gtests/blenlib/BLI_string_test.cc @@ -453,7 +453,7 @@ struct WordInfo { } int start, end; }; -std::ostream &operator<<(std::ostream &os, const WordInfo &word_info) +static std::ostream &operator<<(std::ostream &os, const WordInfo &word_info) { os << "start: " << word_info.start << ", end: " << word_info.end; return os; diff --git a/tests/gtests/blenlib/BLI_vector_test.cc b/tests/gtests/blenlib/BLI_vector_test.cc index 9486c9c0ef2..f258e50a60c 100644 --- a/tests/gtests/blenlib/BLI_vector_test.cc +++ b/tests/gtests/blenlib/BLI_vector_test.cc @@ -261,7 +261,7 @@ TEST(vector, BecomeLarge) } } -IntVector return_by_value_helper() +static IntVector return_by_value_helper() { return IntVector({3, 5, 1}); } diff --git a/tests/gtests/blenlib/stubs/bf_intern_eigen_stubs.h b/tests/gtests/blenlib/stubs/bf_intern_eigen_stubs.h index 97c0916dd9b..dec2631fc63 100644 --- a/tests/gtests/blenlib/stubs/bf_intern_eigen_stubs.h +++ b/tests/gtests/blenlib/stubs/bf_intern_eigen_stubs.h @@ -2,6 +2,13 @@ extern "C" { +void EIG_svd_square_matrix( + const int size, const float *matrix, float *r_U, float *r_S, float *r_V); +bool EIG_self_adjoint_eigen_solve(const int size, + const float *matrix, + float *r_eigen_values, + float *r_eigen_vectors); + bool EIG_self_adjoint_eigen_solve(const int size, const float *matrix, float *r_eigen_values, |