From b624f8c8c708b240ae3276796778eb1c853e9443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sat, 19 Dec 2020 22:23:18 +0100 Subject: [PATCH] manager: Do not use unnecessary volatile qualifier on GQuark As per new GLib in CI image fprintd doesn't build anymore, since g_once_init_enter now warns about using a volatile value, as this has never been supposed to be the case, despite its signature [1]. Related to: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719 [1] https://gitlab.gnome.org/GNOME/glib/-/issues/600 --- src/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.c b/src/manager.c index 3753c4a..7e49953 100644 --- a/src/manager.c +++ b/src/manager.c @@ -432,7 +432,7 @@ fprint_manager_get_default_device (FprintManager *manager, GQuark fprint_error_quark (void) { - static volatile gsize quark = 0; + static gsize quark = 0; if (g_once_init_enter (&quark)) {