build: fix volatile compatible-pointer-types warnings

Happens when compiling with GCC 11
This commit is contained in:
Julian Bouzas 2021-08-18 09:15:47 -04:00
parent b9b722c125
commit 7abd3728e7
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ static const WpSpaIdTableInfo static_id_tables[] = {
GType wp_spa_type_get_type (void)
{
static volatile gsize id__volatile = 0;
static gsize id__volatile = 0;
if (g_once_init_enter (&id__volatile)) {
GType id = g_type_register_static_simple (
G_TYPE_UINT, g_intern_static_string ("WpSpaType"),

View file

@ -74,7 +74,7 @@ enum {
static GType
wp_mixer_api_volume_scale_enum_get_type (void)
{
static volatile gsize gtype_id = 0;
static gsize gtype_id = 0;
static const GEnumValue values[] = {
{ (gint) SCALE_LINEAR, "SCALE_LINEAR", "linear" },
{ (gint) SCALE_CUBIC, "SCALE_CUBIC", "cubic" },