Cleanup: quiet compiler warnings
This commit is contained in:
@@ -417,7 +417,7 @@ static int sculpt_color_filter_invoke(bContext *C, wmOperator *op, const wmEvent
|
||||
return OPERATOR_RUNNING_MODAL;
|
||||
}
|
||||
|
||||
static const char *sculpt_color_filter_get_name(wmOperatorType *ot, PointerRNA *ptr)
|
||||
static const char *sculpt_color_filter_get_name(wmOperatorType * /*ot*/, PointerRNA *ptr)
|
||||
{
|
||||
int mode = RNA_enum_get(ptr, "type");
|
||||
EnumPropertyItem *item = prop_color_filter_types;
|
||||
|
||||
@@ -800,7 +800,7 @@ static void sculpt_mesh_filter_end(bContext *C, wmOperator * /*op*/)
|
||||
SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_COORDS);
|
||||
}
|
||||
|
||||
static void sculpt_mesh_filter_cancel(bContext *C, wmOperator *op)
|
||||
static void UNUSED_FUNCTION(sculpt_mesh_filter_cancel)(bContext *C, wmOperator * /*op*/)
|
||||
{
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
SculptSession *ss = ob->sculpt;
|
||||
|
||||
@@ -1467,7 +1467,8 @@ bool RNA_property_pointer_poll(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *v
|
||||
|
||||
if (pprop->poll) {
|
||||
if (rna_idproperty_check(&prop, ptr)) {
|
||||
return ((PropPointerPollFuncPy)pprop->poll)(ptr, *value, prop);
|
||||
return reinterpret_cast<PropPointerPollFuncPy>(reinterpret_cast<void *>(pprop->poll))(
|
||||
ptr, *value, prop);
|
||||
}
|
||||
return pprop->poll(ptr, *value);
|
||||
}
|
||||
@@ -2095,7 +2096,7 @@ static void rna_property_update(
|
||||
((ContextPropUpdateFunc)prop->update)(C, ptr, prop);
|
||||
}
|
||||
else {
|
||||
((ContextUpdateFunc)prop->update)(C, ptr);
|
||||
(reinterpret_cast<ContextUpdateFunc>(reinterpret_cast<void *>(prop->update)))(C, ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1160,7 +1160,7 @@ static PointerRNA rna_Mesh_vertex_color_active_get(PointerRNA *ptr)
|
||||
|
||||
static void rna_Mesh_vertex_color_active_set(PointerRNA *ptr,
|
||||
const PointerRNA value,
|
||||
ReportList *reports)
|
||||
ReportList *UNUSED(reports))
|
||||
{
|
||||
Mesh *mesh = (Mesh *)ptr->data;
|
||||
CustomDataLayer *layer = (CustomDataLayer *)value.data;
|
||||
@@ -1267,7 +1267,7 @@ static PointerRNA rna_Mesh_sculpt_vertex_color_active_get(PointerRNA *ptr)
|
||||
|
||||
static void rna_Mesh_sculpt_vertex_color_active_set(PointerRNA *ptr,
|
||||
const PointerRNA value,
|
||||
ReportList *reports)
|
||||
ReportList *UNUSED(reports))
|
||||
{
|
||||
Mesh *mesh = (Mesh *)ptr->data;
|
||||
CustomDataLayer *layer = (CustomDataLayer *)value.data;
|
||||
|
||||
Reference in New Issue
Block a user