mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Quell warnings from g_once_init_enter_impl
This commit is contained in:
parent
f5bc2e00c7
commit
ae85e3b7b6
@ -1105,7 +1105,7 @@ g_once_init_enter_impl (volatile gsize *value_location)
|
|||||||
{
|
{
|
||||||
gboolean need_init = FALSE;
|
gboolean need_init = FALSE;
|
||||||
g_mutex_lock (g_once_mutex);
|
g_mutex_lock (g_once_mutex);
|
||||||
if (g_atomic_pointer_get (value_location) == NULL)
|
if (g_atomic_pointer_get ((void**) value_location) == NULL)
|
||||||
{
|
{
|
||||||
if (!g_slist_find (g_once_init_list, (void*) value_location))
|
if (!g_slist_find (g_once_init_list, (void*) value_location))
|
||||||
{
|
{
|
||||||
@ -1139,7 +1139,7 @@ void
|
|||||||
g_once_init_leave (volatile gsize *value_location,
|
g_once_init_leave (volatile gsize *value_location,
|
||||||
gsize initialization_value)
|
gsize initialization_value)
|
||||||
{
|
{
|
||||||
g_return_if_fail (g_atomic_pointer_get (value_location) == NULL);
|
g_return_if_fail (g_atomic_pointer_get ((void**)value_location) == NULL);
|
||||||
g_return_if_fail (initialization_value != 0);
|
g_return_if_fail (initialization_value != 0);
|
||||||
g_return_if_fail (g_once_init_list != NULL);
|
g_return_if_fail (g_once_init_list != NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user