Cleanup: missing declaration warnings

This commit is contained in:
Campbell Barton
2019-10-20 16:42:49 +11:00
parent 970d7ed860
commit 047c66279a
8 changed files with 19 additions and 10 deletions

View File

@@ -21,6 +21,8 @@
#include <vector> #include <vector>
#include "BlenderContext.h" #include "BlenderContext.h"
#include "ExportSettings.h"
#include "BKE_scene.h" #include "BKE_scene.h"
bool bc_is_base_node(LinkNode *export_set, Object *ob, ViewLayer *view_layer) bool bc_is_base_node(LinkNode *export_set, Object *ob, ViewLayer *view_layer)

View File

@@ -314,7 +314,7 @@ std::string get_joint_sid(Bone *bone)
{ {
return translate_id(bone->name); return translate_id(bone->name);
} }
std::string get_joint_sid(EditBone *bone) static std::string get_joint_sid(EditBone *bone)
{ {
return translate_id(bone->name); return translate_id(bone->name);
} }

View File

@@ -1149,7 +1149,7 @@ void bc_copy_m4d_v44(double (&r)[4][4], std::vector<std::vector<double>> &a)
/** /**
* Returns name of Active UV Layer or empty String if no active UV Layer defined * Returns name of Active UV Layer or empty String if no active UV Layer defined
*/ */
std::string bc_get_active_uvlayer_name(Mesh *me) static std::string bc_get_active_uvlayer_name(Mesh *me)
{ {
int num_layers = CustomData_number_of_layers(&me->ldata, CD_MLOOPUV); int num_layers = CustomData_number_of_layers(&me->ldata, CD_MLOOPUV);
if (num_layers) { if (num_layers) {
@@ -1165,7 +1165,7 @@ std::string bc_get_active_uvlayer_name(Mesh *me)
* Returns name of Active UV Layer or empty String if no active UV Layer defined. * Returns name of Active UV Layer or empty String if no active UV Layer defined.
* Assuming the Object is of type MESH * Assuming the Object is of type MESH
*/ */
std::string bc_get_active_uvlayer_name(Object *ob) static std::string bc_get_active_uvlayer_name(Object *ob)
{ {
Mesh *me = (Mesh *)ob->data; Mesh *me = (Mesh *)ob->data;
return bc_get_active_uvlayer_name(me); return bc_get_active_uvlayer_name(me);
@@ -1174,7 +1174,7 @@ std::string bc_get_active_uvlayer_name(Object *ob)
/** /**
* Returns UV Layer name or empty string if layer index is out of range * Returns UV Layer name or empty string if layer index is out of range
*/ */
std::string bc_get_uvlayer_name(Mesh *me, int layer) static std::string bc_get_uvlayer_name(Mesh *me, int layer)
{ {
int num_layers = CustomData_number_of_layers(&me->ldata, CD_MLOOPUV); int num_layers = CustomData_number_of_layers(&me->ldata, CD_MLOOPUV);
if (num_layers && layer < num_layers) { if (num_layers && layer < num_layers) {
@@ -1206,7 +1206,7 @@ static bNodeTree *prepare_material_nodetree(Material *ma)
return ma->nodetree; return ma->nodetree;
} }
bNode *bc_add_node( static bNode *bc_add_node(
bContext *C, bNodeTree *ntree, int node_type, int locx, int locy, std::string label) bContext *C, bNodeTree *ntree, int node_type, int locx, int locy, std::string label)
{ {
bNode *node = nodeAddStaticNode(C, ntree, node_type); bNode *node = nodeAddStaticNode(C, ntree, node_type);
@@ -1221,7 +1221,7 @@ bNode *bc_add_node(
return node; return node;
} }
bNode *bc_add_node(bContext *C, bNodeTree *ntree, int node_type, int locx, int locy) static bNode *bc_add_node(bContext *C, bNodeTree *ntree, int node_type, int locx, int locy)
{ {
return bc_add_node(C, ntree, node_type, locx, locy, ""); return bc_add_node(C, ntree, node_type, locx, locy, "");
} }

View File

@@ -50,7 +50,7 @@ TEST(kdopbvh, Single)
BLI_bvhtree_free(tree); 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; float(*points)[3] = (float(*)[3])userdata;

View File

@@ -156,7 +156,7 @@ TEST(map, ItemIterator)
EXPECT_TRUE(values.contains(0.0f)); EXPECT_TRUE(values.contains(0.0f));
} }
float return_42() static float return_42()
{ {
return 42.0f; return 42.0f;
} }

View File

@@ -453,7 +453,7 @@ struct WordInfo {
} }
int start, end; 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; os << "start: " << word_info.start << ", end: " << word_info.end;
return os; return os;

View File

@@ -261,7 +261,7 @@ TEST(vector, BecomeLarge)
} }
} }
IntVector return_by_value_helper() static IntVector return_by_value_helper()
{ {
return IntVector({3, 5, 1}); return IntVector({3, 5, 1});
} }

View File

@@ -2,6 +2,13 @@
extern "C" { 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, bool EIG_self_adjoint_eigen_solve(const int size,
const float *matrix, const float *matrix,
float *r_eigen_values, float *r_eigen_values,