From 016ba86f9368ae535930390669d770cdafa255c6 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 27 Apr 2025 11:55:10 +0300 Subject: [PATCH] tray, unix: make pointers g_object_ref and g_object_ref_sink static Fixes: https://github.com/libsdl-org/SDL/issues/12908. --- src/tray/unix/SDL_tray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tray/unix/SDL_tray.c b/src/tray/unix/SDL_tray.c index dc2d0ca639..1c305a966c 100644 --- a/src/tray/unix/SDL_tray.c +++ b/src/tray/unix/SDL_tray.c @@ -58,8 +58,8 @@ typedef enum static gulong (*g_signal_connect_data)(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags); static void (*g_object_unref)(gpointer object); static gchar *(*g_mkdtemp)(gchar *template); -gpointer (*g_object_ref_sink)(gpointer object); -gpointer (*g_object_ref)(gpointer object); +static gpointer (*g_object_ref_sink)(gpointer object); +static gpointer (*g_object_ref)(gpointer object); // glib_typeof requires compiler-specific code and includes that are too complex // to be worth copy-pasting here