Silence "defined but not used" warnings

This commit is contained in:
Dalai Felinto
2017-02-23 10:24:59 +01:00
parent 3b3ed19c18
commit 53a9dec2bf
3 changed files with 4 additions and 4 deletions

View File

@@ -7459,7 +7459,7 @@ static void drawtube(const float vec[3], float radius, float height, float tmat[
}
/* needs fixing if non-identity matrix used */
static void imm_drawtube(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
static void UNUSED_FUNCTION(imm_drawtube)(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
{
float cur[3];
imm_drawcircball(vec, radius, tmat, pos);
@@ -7505,7 +7505,7 @@ static void drawcone(const float vec[3], float radius, float height, float tmat[
}
/* needs fixing if non-identity matrix used */
static void imm_drawcone(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
static void UNUSED_FUNCTION(imm_drawcone)(const float vec[3], float radius, float height, float tmat[4][4], unsigned pos)
{
float cur[3];

View File

@@ -220,7 +220,7 @@ void GPU_render_text(
/* Checking powers of two for images since OpenGL ES requires it */
static bool is_power_of_2_resolution(int w, int h)
static bool UNUSED_FUNCTION(is_power_of_2_resolution)(int w, int h)
{
return is_power_of_2_i(w) && is_power_of_2_i(h);
}

View File

@@ -225,7 +225,7 @@ static void foreachObjectLink(ModifierData *md, Object *ob, ObjectWalkFunc walk,
walk(userData, ob, &umd->object_src, IDWALK_CB_NOP);
}
static void uv_warp_deps_object_bone(DagForest *forest, DagNode *obNode,
static void UNUSED_FUNCTION(uv_warp_deps_object_bone)(DagForest *forest, DagNode *obNode,
Object *obj, const char *bonename)
{
if (obj) {