mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
Merge branch 'zero-null' into 'master'
gthread: Fix "zero as null pointer" warning See merge request GNOME/glib!1253
This commit is contained in:
commit
7a4740c7b1
@ -247,7 +247,7 @@ void g_once_init_leave (volatile void *location,
|
||||
# define g_once_init_enter(location) \
|
||||
(G_GNUC_EXTENSION ({ \
|
||||
G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer)); \
|
||||
(void) (0 ? (gpointer) *(location) : 0); \
|
||||
(void) (0 ? (gpointer) *(location) : NULL); \
|
||||
(!g_atomic_pointer_get (location) && \
|
||||
g_once_init_enter (location)); \
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user