mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
hotplug-sniffer: Drop "volatile" from g_once_init_enter() sentinels
As documented in g_once_init_enter(): "While @location has a volatile qualifier, this is a historical artifact and the pointer passed to it should not be volatile.". And effectively this now warns with modern glibc. Drop this from our logging function. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1770>
This commit is contained in:
parent
554d76a200
commit
4dfc53cade
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ print_debug (const gchar *format, ...)
|
|||
g_autofree char *timestamp = NULL;
|
||||
va_list ap;
|
||||
g_autoptr (GDateTime) now = NULL;
|
||||
static volatile gsize once_init_value = 0;
|
||||
static size_t once_init_value = 0;
|
||||
static gboolean show_debug = FALSE;
|
||||
static guint pid = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue