Cleanup: unused functuion warnings

This commit is contained in:
Campbell Barton 2021-10-21 17:14:33 +11:00
parent cfbac9032b
commit f0f1198867
2 changed files with 3 additions and 2 deletions

View File

@ -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 |

View File

@ -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;