Commit: 53a9dec2bfecc8a2c863d850bcec05aafb008bac
Author: Dalai Felinto
Date:   Thu Feb 23 10:24:59 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB53a9dec2bfecc8a2c863d850bcec05aafb008bac

Silence "defined but not used" warnings

===================================================================

M       source/blender/editors/space_view3d/drawobject.c
M       source/blender/gpu/intern/gpu_draw.c
M       source/blender/modifiers/intern/MOD_uvwarp.c

===================================================================

diff --git a/source/blender/editors/space_view3d/drawobject.c 
b/source/blender/editors/space_view3d/drawobject.c
index 1b8acde421..8657991d1b 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 1fb1e23931..fa8e05b6bf 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 072267fc50..00ef6dd973 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) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to