mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
core: avoid compiler warnings related to cleanup attribute
gcc doesn't consider variables with cleanup attribute as unused. clang does, and warns about them. In one case, clang is right, in the other one the warning is bogus. Fix both.
This commit is contained in:
parent
42d1452773
commit
dccf9f3a61
2 changed files with 2 additions and 2 deletions
|
|
@ -2459,9 +2459,10 @@ _platform_link_cb_idle (PlatformLinkCbData *data)
|
|||
|
||||
plink = nm_platform_link_get (priv->platform, ifindex);
|
||||
if (plink) {
|
||||
nm_auto_nmpobj const NMPObject *plink_keep_alive = nmp_object_ref (NMP_OBJECT_UP_CAST (plink));
|
||||
const NMPObject *plink_keep_alive = nmp_object_ref (NMP_OBJECT_UP_CAST (plink));
|
||||
|
||||
platform_link_added (self, ifindex, plink, FALSE, NULL);
|
||||
nmp_object_unref (plink_keep_alive);
|
||||
} else {
|
||||
NMDevice *device;
|
||||
GError *error = NULL;
|
||||
|
|
|
|||
|
|
@ -3670,7 +3670,6 @@ nm_platform_ip_route_sync (NMPlatform *self,
|
|||
GPtrArray **out_temporary_not_available)
|
||||
{
|
||||
const NMPlatformVTableRoute *vt;
|
||||
gs_unref_ptrarray GPtrArray *plat_routes = NULL;
|
||||
gs_unref_hashtable GHashTable *routes_idx = NULL;
|
||||
const NMPObject *conf_o;
|
||||
const NMDedupMultiEntry *plat_entry;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue