mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 13:30:08 +01:00
libnm: add assertions to unreachable code in _nm_setting_property_{get,set}_property_direct()
This commit is contained in:
parent
11ee08e78a
commit
bdbd3890e3
1 changed files with 2 additions and 2 deletions
|
|
@ -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().
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue