Cleanup: silence Warnings

Warning	C4100 unreferenced formal parameter
Warning	C4242 conversion from 'int' to 'short', possible loss of data
This commit is contained in:
Germano Cavalcante 2021-10-20 10:03:46 -03:00
parent 2743d746ea
commit 4539c7cc57
2 changed files with 3 additions and 3 deletions

View File

@ -235,7 +235,7 @@ static void v3d_cursor_plane_draw_grid(const int resolution,
i += 1;
}
}
BLI_assert(i == coords_len);
BLI_assert(i == (int)coords_len);
immBeginAtMost(GPU_PRIM_LINES, coords_len * 4);
i = 0;
for (int x = 0; x < resolution_min; x++) {
@ -661,7 +661,7 @@ static void v3d_cursor_snap_update(V3DSnapCursorState *state,
else {
ViewLayer *view_layer = CTX_data_view_layer(C);
Object *ob = OBACT(view_layer);
const short orient_index = BKE_scene_orientation_get_index(scene, SCE_ORIENT_DEFAULT);
const int orient_index = BKE_scene_orientation_get_index(scene, SCE_ORIENT_DEFAULT);
const int pivot_point = scene->toolsettings->transform_pivot_point;
ED_transform_calc_orientation_from_type_ex(
scene, view_layer, v3d, region->regiondata, ob, ob, orient_index, pivot_point, omat);

View File

@ -1259,7 +1259,7 @@ static void idp_rna_plane_axis_set_fn(struct PointerRNA *UNUSED(ptr),
int value)
{
V3DSnapCursorState *snap_state = ED_view3d_cursor_snap_state_get();
snap_state->plane_axis = value;
snap_state->plane_axis = (short)value;
ED_view3d_cursor_snap_state_default_set(snap_state);
}