diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-21 09:14:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-21 09:14:33 +0300 |
commit | f0f119886701efd9d2038b3bf8caa401ab2c87c5 (patch) | |
tree | 30e0ae4402b4313bb9f0d170e583587a1fbed1b8 /source/blender/editors/space_view3d | |
parent | cfbac9032b0009f760e93f9e70813ac6693b26cb (diff) |
Cleanup: unused functuion warnings
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_cursor_snap.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_placement.c | 3 |
2 files changed, 3 insertions, 2 deletions
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; |