mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 19:07:52 +02:00
gobject: Drop use of volatile from get_type() macros
http://isvolatileusefulwiththreads.in/c/ It’s possible that the variables here are only marked as volatile because they’re arguments to `g_once_*()`. Those arguments will be modified in a subsequent commit. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #600
This commit is contained in:
@@ -32,7 +32,7 @@ G_DEFINE_BOXED_TYPE (GIOChannel, g_io_channel, g_io_channel_ref, g_io_channel_un
|
||||
GType
|
||||
g_io_condition_get_type (void)
|
||||
{
|
||||
static volatile GType etype = 0;
|
||||
static GType etype = 0;
|
||||
|
||||
if (g_once_init_enter (&etype))
|
||||
{
|
||||
|
Reference in New Issue
Block a user