[Bf-blender-cvs] [f0f11988670] master: Cleanup: unused functuion warnings
Campbell Barton
noreply at git.blender.org
Thu Oct 21 08:14:50 CEST 2021
Commit: f0f119886701efd9d2038b3bf8caa401ab2c87c5
Author: Campbell Barton
Date: Thu Oct 21 17:14:33 2021 +1100
Branches: master
https://developer.blender.org/rBf0f119886701efd9d2038b3bf8caa401ab2c87c5
Cleanup: unused functuion warnings
===================================================================
M source/blender/editors/space_view3d/view3d_cursor_snap.c
M source/blender/editors/space_view3d/view3d_placement.c
===================================================================
diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c
index 1b513c0a9a7..ff5c5c6a946 100644
--- a/source/blender/editors/space_view3d/view3d_cursor_snap.c
+++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c
@@ -94,7 +94,7 @@ typedef struct SnapCursorDataIntern {
bool is_initiated;
} SnapCursorDataIntern;
-static void v3d_cursor_snap_state_init(V3DSnapCursorState *state)
+static void UNUSED_FUNCTION(v3d_cursor_snap_state_init)(V3DSnapCursorState *state)
{
state->prevpoint = NULL;
state->snap_elem_force = (SCE_SNAP_MODE_VERTEX | SCE_SNAP_MODE_EDGE | SCE_SNAP_MODE_FACE |
diff --git a/source/blender/editors/space_view3d/view3d_placement.c b/source/blender/editors/space_view3d/view3d_placement.c
index f1fd5732708..79377e5599c 100644
--- a/source/blender/editors/space_view3d/view3d_placement.c
+++ b/source/blender/editors/space_view3d/view3d_placement.c
@@ -222,7 +222,8 @@ static int dot_v3_array_find_max_index(const float dirs[][3],
return index_found;
}
-static wmGizmoGroup *idp_gizmogroup_from_region(ARegion *region)
+static UNUSED_FUNCTION_WITH_RETURN_TYPE(wmGizmoGroup *,
+ idp_gizmogroup_from_region)(ARegion *region)
{
wmGizmoMap *gzmap = region->gizmo_map;
return gzmap ? WM_gizmomap_group_find(gzmap, view3d_gzgt_placement_id) : NULL;
More information about the Bf-blender-cvs
mailing list