diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-27 09:20:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-27 09:20:38 +0300 |
commit | d9799e770630c3971106bcadd45010bc82824f09 (patch) | |
tree | 91a77e5c95a2d914d1680795dd40c810743d685c /source/blender/editors/mesh | |
parent | 55dda9fdb3f17281304d323ee18f23aa2e7a5ece (diff) |
Cleanup: use UNUSED_FUNCTION(..) attribute
Otherwise this function may fail to compile when other changes are made.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |