diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.cc b/source/blender/editors/sculpt_paint/sculpt_filter_color.cc index 3ef97990225..763253f7650 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_color.cc +++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.cc @@ -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; diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc index c7d965ceeaf..8b7a8dd1e0f 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc +++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc @@ -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; diff --git a/source/blender/makesrna/intern/rna_access.cc b/source/blender/makesrna/intern/rna_access.cc index d933c889940..c81971d3fe4 100644 --- a/source/blender/makesrna/intern/rna_access.cc +++ b/source/blender/makesrna/intern/rna_access.cc @@ -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(reinterpret_cast(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(reinterpret_cast(prop->update)))(C, ptr); } } } diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index f37df9019a3..915822c93d0 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -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;