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:
Philip Withnall
2020-11-11 18:12:22 +00:00
parent 066e68001e
commit fab561f8d0
10 changed files with 56 additions and 56 deletions

View File

@@ -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))
{