From a74749d354a9d5458f664eb67691901e13bfe738 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 6 Aug 2012 08:51:40 -0400 Subject: [PATCH] Deprecated GSlice config API This was marked as 'internal debugging' in the headers, and should have never been made public. As a first step to repair this, deprecate it. https://bugzilla.gnome.org/show_bug.cgi?id=680831 --- glib/gslice.h | 4 ++++ glib/tests/slice.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/glib/gslice.h b/glib/gslice.h index 4b4b9e5..3efd645 100644 --- a/glib/gslice.h +++ b/glib/gslice.h @@ -77,8 +77,12 @@ typedef enum { G_SLICE_CONFIG_CHUNK_SIZES, G_SLICE_CONFIG_CONTENTION_COUNTER } GSliceConfig; + +GLIB_DEPRECATED_IN_2_34 void g_slice_set_config (GSliceConfig ckey, gint64 value); +GLIB_DEPRECATED_IN_2_34 gint64 g_slice_get_config (GSliceConfig ckey); +GLIB_DEPRECATED_IN_2_34 gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values); G_END_DECLS diff --git a/glib/tests/slice.c b/glib/tests/slice.c index 7976e51..50bbed1 100644 --- a/glib/tests/slice.c +++ b/glib/tests/slice.c @@ -1,5 +1,8 @@ #include +/* We test deprecated functionality here */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + static void test_slice_config (void) { -- 2.7.4