libnm: add assertions to unreachable code in _nm_setting_property_{get,set}_property_direct()

This commit is contained in:
Thomas Haller 2023-10-26 09:16:26 +02:00
parent 11ee08e78a
commit bdbd3890e3
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -824,7 +824,7 @@ _nm_setting_property_get_property_direct(GObject *object,
goto out_fail;
}
return;
nm_assert_not_reached();
out_fail:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
@ -971,7 +971,7 @@ _nm_setting_property_set_property_direct(GObject *object,
goto out_fail;
}
return;
nm_assert_not_reached();
out_notify:
/* If explicit-notify would be set, we would need to emit g_object_notify_by_pspec().