diff --git a/source/blender/editors/armature/armature_naming.cc b/source/blender/editors/armature/armature_naming.cc index d4d8a0c6c34..5a125c4e262 100644 --- a/source/blender/editors/armature/armature_naming.cc +++ b/source/blender/editors/armature/armature_naming.cc @@ -255,7 +255,7 @@ void ED_armature_bone_rename(Main *bmain, } if (BKE_modifiers_uses_armature(ob, arm) && BKE_object_supports_vertex_groups(ob)) { - if (bDeformGroup *existing_dg = BKE_object_defgroup_find_name(ob, newname)) { + if (BKE_object_defgroup_find_name(ob, newname)) { WM_reportf( eReportType::RPT_WARNING, "%s (%s::%s)",