1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

Drop use of volatile

The volatile qualifier was mostly used for historical reasons,
the documentation for `g_once_init_enter()` and `g_once_init_leave()`
has the following to say:

While `location` has a `volatile` qualifier,
this is a historical artifact and the pointer passed to it
should not be volatile.

See also https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-07-09 11:29:26 +02:00
parent fd5a24f853
commit 44c892b6f7

View file

@ -7,7 +7,7 @@
GType
gtk_sorter_order_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{
@ -27,7 +27,7 @@ gtk_sorter_order_get_type (void)
GType
gtk_sorter_change_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{
@ -50,7 +50,7 @@ gtk_sorter_change_get_type (void)
GType
gtk_filter_match_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{
@ -70,7 +70,7 @@ gtk_filter_match_get_type (void)
GType
gtk_filter_change_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
static gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile))
{