diff --git a/glib/gslice.h b/glib/gslice.h index 4b4b9e53e..3efd645dd 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 7976e5111..50bbed17c 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) {