From 53a9dec2bfecc8a2c863d850bcec05aafb008bac Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 23 Feb 2017 10:24:59 +0100 Subject: Silence "defined but not used" warnings --- source/blender/editors/space_view3d/drawobject.c | 4 ++-- source/blender/gpu/intern/gpu_draw.c | 2 +- source/blender/modifiers/intern/MOD_uvwarp.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 1b8acde4219..8657991d1ba 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -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]; diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 1fb1e239310..fa8e05b6bfb 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -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); } diff --git a/source/blender/modifiers/intern/MOD_uvwarp.c b/source/blender/modifiers/intern/MOD_uvwarp.c index 072267fc505..00ef6dd9733 100644 --- a/source/blender/modifiers/intern/MOD_uvwarp.c +++ b/source/blender/modifiers/intern/MOD_uvwarp.c @@ -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) { -- cgit v1.2.3