summaryrefslogtreecommitdiff
path: root/tests/capabilities.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/capabilities.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/capabilities.c')
-rw-r--r--tests/capabilities.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/capabilities.c b/tests/capabilities.c
index b7c87f36c..7eab5e76e 100644
--- a/tests/capabilities.c
+++ b/tests/capabilities.c
@@ -118,8 +118,10 @@ test_basics (Test *test,
arr = g_ptr_array_index (classes, 0);
g_assert_cmpuint (arr->n_values, ==, 2);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
fixed = g_value_get_boxed (g_value_array_get_nth (arr, 0));
allowed = g_value_get_boxed (g_value_array_get_nth (arr, 1));
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
g_assert_cmpuint (g_hash_table_size (fixed), ==, 2);
@@ -137,8 +139,10 @@ test_basics (Test *test,
arr = g_ptr_array_index (classes, 1);
g_assert_cmpuint (arr->n_values, ==, 2);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
fixed = g_value_get_boxed (g_value_array_get_nth (arr, 0));
allowed = g_value_get_boxed (g_value_array_get_nth (arr, 1));
+ G_GNUC_END_IGNORE_DEPRECATIONS
g_assert_cmpuint (g_hash_table_size (fixed), ==, 2);