diff --git a/gjs/error-types.cpp b/gjs/error-types.cpp index 86cb878..7045260 100644 --- a/gjs/error-types.cpp +++ b/gjs/error-types.cpp @@ -31,7 +31,7 @@ G_DEFINE_QUARK(gjs-js-error-quark, gjs_js_error) // clang-format on GType gjs_js_error_get_type(void) { - static volatile GType g_type_id; + static GType g_type_id; if (g_once_init_enter(&g_type_id)) { static GEnumValue errors[] = { diff --git a/libgjs-private/gjs-util.c b/libgjs-private/gjs-util.c index d4f7470..e420c78 100644 --- a/libgjs-private/gjs-util.c +++ b/libgjs-private/gjs-util.c @@ -56,7 +56,7 @@ gjs_format_int_alternative_output(int n) GType gjs_locale_category_get_type(void) { - static volatile size_t g_define_type_id__volatile = 0; + static size_t g_define_type_id__volatile = 0; if (g_once_init_enter(&g_define_type_id__volatile)) { static const GEnumValue v[] = { { GJS_LOCALE_CATEGORY_ALL, "GJS_LOCALE_CATEGORY_ALL", "all" },