Cleanup: remove unused argument, warnings
This commit is contained in:
parent
0c2b2cdb78
commit
9c71f5807f
|
@ -264,7 +264,7 @@ static GPUTexture **get_image_gpu_texture_ptr(Image *ima,
|
|||
eGPUTextureTarget textarget,
|
||||
const int multiview_eye)
|
||||
{
|
||||
const bool in_range = (textarget >= 0) && (textarget < TEXTARGET_COUNT);
|
||||
const bool in_range = (int(textarget) >= 0) && (textarget < TEXTARGET_COUNT);
|
||||
BLI_assert(in_range);
|
||||
BLI_assert(ELEM(multiview_eye, 0, 1));
|
||||
|
||||
|
|
|
@ -288,8 +288,7 @@ static void add_stroke_extension(bGPDframe *gpf, bGPDstroke *gps, float p1[3], f
|
|||
pt->pressure = 1.0f;
|
||||
}
|
||||
|
||||
static void add_endpoint_radius_help(tGPDfill *tgpf,
|
||||
bGPDframe *gpf,
|
||||
static void add_endpoint_radius_help(bGPDframe *gpf,
|
||||
bGPDstroke *gps,
|
||||
const float endpoint[3],
|
||||
const float radius,
|
||||
|
@ -834,8 +833,8 @@ static void gpencil_create_extensions_radius(tGPDfill *tgpf)
|
|||
|
||||
bool start_connected = BLI_gset_haskey(connected_endpoints, stroke1_start);
|
||||
bool end_connected = BLI_gset_haskey(connected_endpoints, stroke1_end);
|
||||
add_endpoint_radius_help(tgpf, gpf, gps, stroke1_start, connection_dist, start_connected);
|
||||
add_endpoint_radius_help(tgpf, gpf, gps, stroke1_end, connection_dist, end_connected);
|
||||
add_endpoint_radius_help(gpf, gps, stroke1_start, connection_dist, start_connected);
|
||||
add_endpoint_radius_help(gpf, gps, stroke1_end, connection_dist, end_connected);
|
||||
}
|
||||
|
||||
BLI_gset_free(connected_endpoints, NULL);
|
||||
|
|
|
@ -2681,8 +2681,8 @@ static int Vector_swizzle_set(VectorObject *self, PyObject *value, void *closure
|
|||
size_from = axis_from;
|
||||
}
|
||||
else if ((void)PyErr_Clear(), /* run but ignore the result */
|
||||
(size_from = mathutils_array_parse(
|
||||
vec_assign, 2, 4, value, "mathutils.Vector.**** = swizzle assignment")) == -1) {
|
||||
(size_from = (size_t)mathutils_array_parse(
|
||||
vec_assign, 2, 4, value, "Vector.**** = swizzle assignment")) == (size_t)-1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue