From b546beef21d1918b7c08f2d1838ef6f32d7ead73 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 23 Jul 2020 19:36:06 -0400 Subject: [PATCH] proplist-util: Drop deprecated G_CONST_RETURN macro The preference in glib is now to just use the const qualifier directly. --- src/pulsecore/proplist-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulsecore/proplist-util.c b/src/pulsecore/proplist-util.c index f966579b4..16ea9e006 100644 --- a/src/pulsecore/proplist-util.c +++ b/src/pulsecore/proplist-util.c @@ -45,14 +45,14 @@ extern char **environ; #if defined(HAVE_GLIB) && defined(PA_GCC_WEAKREF) #include -static G_CONST_RETURN gchar* _g_get_application_name(void) PA_GCC_WEAKREF(g_get_application_name); +static const gchar* _g_get_application_name(void) PA_GCC_WEAKREF(g_get_application_name); #endif #if defined(HAVE_GTK) && defined(PA_GCC_WEAKREF) #pragma GCC diagnostic ignored "-Wstrict-prototypes" #include #include -static G_CONST_RETURN gchar* _gtk_window_get_default_icon_name(void) PA_GCC_WEAKREF(gtk_window_get_default_icon_name); +static const gchar* _gtk_window_get_default_icon_name(void) PA_GCC_WEAKREF(gtk_window_get_default_icon_name); static Display *_gdk_display PA_GCC_WEAKREF(gdk_display); #endif