summaryrefslogtreecommitdiff
path: root/tests/gnio-util.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-26 14:38:02 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-26 16:30:52 +0100
commit64d0037d0a2692d692b2b4f0a7a28d01fbfc5bf8 (patch)
tree6a83c63695778a321bb2080076b985a59469247f /tests/gnio-util.c
parentb29452b531d9edadeb5558697c58c35ecf2f44c2 (diff)
downloadtelepathy-glib-64d0037d0a2692d692b2b4f0a7a28d01fbfc5bf8.tar.gz
Suppress remaining GValueArray deprecation warnings
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
Diffstat (limited to 'tests/gnio-util.c')
-rw-r--r--tests/gnio-util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gnio-util.c b/tests/gnio-util.c
index 90de7a70c..6ac758a0d 100644
--- a/tests/gnio-util.c
+++ b/tests/gnio-util.c
@@ -109,12 +109,16 @@ test_sockaddr_to_variant_ipv4 (void)
g_assert (G_VALUE_HOLDS (variant, TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV4));
array = g_value_get_boxed (variant);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
value = g_value_array_get_nth (array, 0);
+ G_GNUC_END_IGNORE_DEPRECATIONS
g_assert (G_VALUE_HOLDS_STRING (value));
g_assert_cmpstr (g_value_get_string (value), ==, IPV4_ADDR);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
value = g_value_array_get_nth (array, 1);
+ G_GNUC_END_IGNORE_DEPRECATIONS
g_assert (G_VALUE_HOLDS_UINT (value));
g_assert_cmpuint (g_value_get_uint (value), ==, PORT);
@@ -152,12 +156,16 @@ test_sockaddr_to_variant_ipv6 (void)
g_assert (G_VALUE_HOLDS (variant, TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV6));
array = g_value_get_boxed (variant);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
value = g_value_array_get_nth (array, 0);
+ G_GNUC_END_IGNORE_DEPRECATIONS
g_assert (G_VALUE_HOLDS_STRING (value));
g_assert_cmpstr (g_value_get_string (value), ==, IPV6_ADDR);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
value = g_value_array_get_nth (array, 1);
+ G_GNUC_END_IGNORE_DEPRECATIONS
g_assert (G_VALUE_HOLDS_UINT (value));
g_assert_cmpuint (g_value_get_uint (value), ==, PORT);