Silence "defined but not used" warnings
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user