summaryrefslogtreecommitdiff
path: root/libmm-glib/tests
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 10:51:23 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commit02eafb582186021a7eab2863c88f3275b68c8f5e (patch)
tree249ae97c5802d62540f604b0c2a76affdb3a2b7d /libmm-glib/tests
parent9e24226364f9c635160cdb0ca8a404781091ba7b (diff)
downloadModemManager-02eafb582186021a7eab2863c88f3275b68c8f5e.tar.gz
libmm-glib,test: avoid using deprecated mm_pco_list_free()
test-pco.c: In function ‘test_pco_list_add’: test-pco.c:82:5: warning: ‘mm_pco_list_free’ is deprecated [-Wdeprecated-declarations] 82 | mm_pco_list_free (list); | ^~~~~~~~~~~~~~~~ In file included from ../../libmm-glib/libmm-glib.h:82, from test-pco.c:17: ../../libmm-glib/mm-pco.h:67:6: note: declared here 67 | void mm_pco_list_free (GList *pco_list); | ^~~~~~~~~~~~~~~~
Diffstat (limited to 'libmm-glib/tests')
-rw-r--r--libmm-glib/tests/test-pco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmm-glib/tests/test-pco.c b/libmm-glib/tests/test-pco.c
index 086ce3bab..4b09d4c9b 100644
--- a/libmm-glib/tests/test-pco.c
+++ b/libmm-glib/tests/test-pco.c
@@ -79,7 +79,7 @@ test_pco_list_add (void)
g_assert_cmpint (memcmp (pco_data, expected_pco->pco_data, pco_data_size), ==, 0);
}
- mm_pco_list_free (list);
+ g_list_free_full (list, g_object_unref);
}
/**************************************************************/