[Bf-blender-cvs] [d9799e77063] master: Cleanup: use UNUSED_FUNCTION(..) attribute

Campbell Barton noreply at git.blender.org
Wed Oct 27 08:31:28 CEST 2021


Commit: d9799e770630c3971106bcadd45010bc82824f09
Author: Campbell Barton
Date:   Wed Oct 27 17:20:38 2021 +1100
Branches: master
https://developer.blender.org/rBd9799e770630c3971106bcadd45010bc82824f09

Cleanup: use UNUSED_FUNCTION(..) attribute

Otherwise this function may fail to compile when other changes are made.

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

M	source/blender/editors/mesh/editmesh_knife.c

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

diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 09ae779138c..b712cfc24ed 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -1462,8 +1462,9 @@ static void knife_input_ray_segment(KnifeTool_OpData *kcd,
 }
 
 /* No longer used, but may be useful in the future. */
-#if 0
-static void knifetool_recast_cageco(KnifeTool_OpData *kcd, float mval[3], float r_cage[3])
+static void UNUSED_FUNCTION(knifetool_recast_cageco)(KnifeTool_OpData *kcd,
+                                                     float mval[3],
+                                                     float r_cage[3])
 {
   float origin[3];
   float origin_ofs[3];
@@ -1477,7 +1478,6 @@ static void knifetool_recast_cageco(KnifeTool_OpData *kcd, float mval[3], float
 
   knife_bvh_raycast(kcd, origin, ray_normal, 0.0f, NULL, co, r_cage, NULL);
 }
-#endif
 
 static bool knife_verts_edge_in_face(KnifeVert *v1, KnifeVert *v2, BMFace *f)
 {



More information about the Bf-blender-cvs mailing list