From 99bb8bb3f71de0a0c8c07fe2bd7cd7bc469a62eb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 31 Jul 2020 11:36:03 -0400 Subject: [PATCH] numericsorter: Ignore deprecations We use g_value_get_char here; replacing it with g_value_get_schar is not entirely trivial, so just ignore deprecations for now. --- gtk/gtknumericsorter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk/gtknumericsorter.c b/gtk/gtknumericsorter.c index 51842de57f..ef5fb92198 100644 --- a/gtk/gtknumericsorter.c +++ b/gtk/gtknumericsorter.c @@ -144,6 +144,8 @@ COMPARE_FUNCS(gulong) COMPARE_FUNCS(gint64) COMPARE_FUNCS(guint64) +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #define NUMERIC_SORT_KEYS(TYPE, key_type, type, default_value) \ static void \ gtk_ ## type ## _sort_keys_init_key (GtkSortKeys *keys, \ @@ -210,6 +212,8 @@ NUMERIC_SORT_KEYS(ULONG, gulong, ulong, G_MAXLONG) NUMERIC_SORT_KEYS(INT64, gint64, int64, G_MININT64) NUMERIC_SORT_KEYS(UINT64, guint64, uint64, G_MAXUINT64) +G_GNUC_END_IGNORE_DEPRECATIONS + static GtkSortKeys * gtk_numeric_sort_keys_new (GtkNumericSorter *self) { @@ -329,6 +333,8 @@ gtk_numeric_sort_keys_new (GtkNumericSorter *self) return (GtkSortKeys *) result; } +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static GtkOrdering gtk_numeric_sorter_compare (GtkSorter *sorter, gpointer item1, @@ -450,6 +456,8 @@ out: return result; } +G_GNUC_END_IGNORE_DEPRECATIONS + static GtkSorterOrder gtk_numeric_sorter_get_order (GtkSorter *sorter) {