diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2021-04-23 16:37:30 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2021-04-23 16:37:30 +1000 |
commit | b73f99cfea6892b019d749192780d4404850536f (patch) | |
tree | 571598f2a25ff7e676596678cfb0289f2f456ed8 | |
parent | afa1046179b084f7c32c652c2ebb5007aeb90687 (diff) | |
download | scintilla-mirror-b73f99cfea6892b019d749192780d4404850536f.tar.gz |
Remove volatile qualifiers as they cause an error with Clang 12.
The glib documentation shows use without volatile and mentions that -
While location has a volatile qualifier, this is a historical artifact and
the pointer passed to it should not be volatile.
https://developer.gnome.org/glib/stable/glib-Threads.html#g-once-init-enter
-rw-r--r-- | gtk/ScintillaGTKAccessible.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx index 3023e5102..9857db174 100644 --- a/gtk/ScintillaGTKAccessible.cxx +++ b/gtk/ScintillaGTKAccessible.cxx @@ -1008,7 +1008,7 @@ static gpointer scintilla_object_accessible_parent_class = nullptr; // @p parent_type is only required on GTK 3.2 to 3.6, and only on the first call static GType scintilla_object_accessible_get_type(GType parent_type G_GNUC_UNUSED) { - static volatile gsize type_id_result = 0; + static gsize type_id_result = 0; if (g_once_init_enter(&type_id_result)) { GTypeInfo tinfo = { @@ -1099,7 +1099,7 @@ AtkObject *ScintillaGTKAccessible::WidgetGetAccessibleImpl(GtkWidget *widget, At #if HAVE_GTK_A11Y_H // just instantiate the accessible *cache = scintilla_object_accessible_new(0, G_OBJECT(widget)); #elif HAVE_GTK_FACTORY // register in the factory and let GTK instantiate - static volatile gsize registered = 0; + static gsize registered = 0; if (g_once_init_enter(®istered)) { // Figure out whether accessibility is enabled by looking at the type of the accessible |