[Bf-blender-cvs] [4c8d8da2e7] blender2.8: Silence warnings in draw_armature.c

Dalai Felinto noreply at git.blender.org
Fri Feb 24 10:14:45 CET 2017


Commit: 4c8d8da2e7c8c0ae82f36aeef2356128df567466
Author: Dalai Felinto
Date:   Thu Feb 23 11:14:19 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB4c8d8da2e7c8c0ae82f36aeef2356128df567466

Silence warnings in draw_armature.c

Also add note about incomplete functions there

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

M	source/blender/draw/intern/draw_armature.c

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

diff --git a/source/blender/draw/intern/draw_armature.c b/source/blender/draw/intern/draw_armature.c
index 68d1b3d7ea..24a183d38c 100644
--- a/source/blender/draw/intern/draw_armature.c
+++ b/source/blender/draw/intern/draw_armature.c
@@ -82,7 +82,7 @@ static void update_color(const float const_color[4])
 	UI_GetThemeColor4fv(TH_VERTEX, colorVertex);
 }
 
-static const float *get_bone_solid_color(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
+static const float *get_bone_solid_color(EditBone *eBone, bPoseChannel *UNUSED(pchan), bArmature *UNUSED(arm))
 {
 	if (constColor)
 		return colorBoneSolid;
@@ -96,7 +96,7 @@ static const float *get_bone_solid_color(EditBone *eBone, bPoseChannel *pchan, b
 	return colorBoneSolid;
 }
 
-static const float *get_bone_wire_color(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
+static const float *get_bone_wire_color(EditBone *eBone, bPoseChannel *UNUSED(pchan), bArmature *UNUSED(arm))
 {
 	if (constColor)
 		return constColor;
@@ -210,24 +210,29 @@ static void draw_points(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
 	DRW_shgroup_bone_point_wire(BONE_VAR(eBone, pchan, disp_tail_mat), col_wire_tail);
 }
 
-static void draw_bone_custom_shape(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
+static void draw_bone_custom_shape(EditBone *UNUSED(eBone), bPoseChannel *UNUSED(pchan), bArmature *UNUSED(arm))
 {
+	/* work in progress  -- fclem */
 }
 
-static void draw_bone_envelope(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
+static void draw_bone_envelope(EditBone *UNUSED(eBone), bPoseChannel *UNUSED(pchan), bArmature *UNUSED(arm))
 {
+	/* work in progress  -- fclem */
 }
 
-static void draw_bone_line(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
+static void draw_bone_line(EditBone *UNUSED(eBone), bPoseChannel *UNUSED(pchan), bArmature *UNUSED(arm))
 {
+	/* work in progress  -- fclem */
 }
 
-static void draw_bone_wire(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
+static void draw_bone_wire(EditBone *UNUSED(eBone), bPoseChannel *UNUSED(pchan), bArmature *UNUSED(arm))
 {
+	/* work in progress  -- fclem */
 }
 
-static void draw_bone_box(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)
+static void draw_bone_box(EditBone *UNUSED(eBone), bPoseChannel *UNUSED(pchan), bArmature *UNUSED(arm))
 {
+	/* work in progress  -- fclem */
 }
 
 static void draw_bone_octahedral(EditBone *eBone, bPoseChannel *pchan, bArmature *arm)




More information about the Bf-blender-cvs mailing list