diff options
author | Ondrej Holy <oholy@redhat.com> | 2021-02-12 14:02:31 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2021-02-12 14:45:49 +0100 |
commit | 4bf0aa8e38d64c92650226b28df38be35a86b4f9 (patch) | |
tree | 24dafc25fc146d63edcc20e03fb8ba65dc1e8feb /monitor | |
parent | 9869544ac0a770a904dda593704ba2fb02662277 (diff) | |
download | gvfs-4bf0aa8e38d64c92650226b28df38be35a86b4f9.tar.gz |
Drop use of volatile qualifier
GVfs build with --werror fails currently because of glib!1719. Let's
drop the volatile qualifier as it doesn't help with atomicity anyway.
Relates: https://gitlab.gnome.org/GNOME/glib/-/issues/600
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/goa/goavolumemonitor.c | 2 | ||||
-rw-r--r-- | monitor/udisks2/gvfsudisks2volumemonitor.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/monitor/goa/goavolumemonitor.c b/monitor/goa/goavolumemonitor.c index 256e9398..46855c84 100644 --- a/monitor/goa/goavolumemonitor.c +++ b/monitor/goa/goavolumemonitor.c @@ -326,7 +326,7 @@ get_goa_client_sync (GError **error) { static GoaClient *client = NULL; static GError *_error = NULL; - static volatile gsize initialized = 0; + static gsize initialized = 0; if (g_once_init_enter (&initialized)) { diff --git a/monitor/udisks2/gvfsudisks2volumemonitor.c b/monitor/udisks2/gvfsudisks2volumemonitor.c index 4ecabd99..4d4f234a 100644 --- a/monitor/udisks2/gvfsudisks2volumemonitor.c +++ b/monitor/udisks2/gvfsudisks2volumemonitor.c @@ -437,7 +437,7 @@ get_udisks_client_sync (GError **error) { static UDisksClient *_client = NULL; static GError *_error = NULL; - static volatile gsize initialized = 0; + static gsize initialized = 0; if (g_once_init_enter (&initialized)) { |