The glib api documentation for g_once_init_enter() specifically states
that "volatile" should NOT be used with the address passed as the
argument. Recent compilers (GCC-11 & clang 11) and recent versions of
glib-2 will result in a warning that the "volatile" qualifier has been
dropped if it has been used.
Remove the unneeded and unwanted "volatile" qualifier from the definition
of "inited" in pollGtk.c.
Fixes: https://github.com/vmware/open-vm-tools/issues/509
/*********************************************************
- * Copyright (C) 2004-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2019,2021 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
} Poll;
static Poll *pollState;
-static volatile gsize inited = 0;
+static gsize inited = 0;
static VMwareStatus
PollGtkCallback(PollClassSet classSet, // IN