mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 19:08:57 +02:00
Merge branch 'deprecatedvolatile' into 'master'
Avoid C++20 deprecated assignment to volatile See merge request GNOME/glib!1170
This commit is contained in:
@@ -254,7 +254,7 @@ void g_once_init_leave (volatile void *location,
|
||||
# define g_once_init_leave(location, result) \
|
||||
(G_GNUC_EXTENSION ({ \
|
||||
G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer)); \
|
||||
(void) (0 ? *(location) = (result) : 0); \
|
||||
0 ? (void) (*(location) = (result)) : (void) 0; \
|
||||
g_once_init_leave ((location), (gsize) (result)); \
|
||||
}))
|
||||
#else
|
||||
|
Reference in New Issue
Block a user