From 7abd3728e7cef08f36efeeb9898c9d024f1db9bf Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Wed, 18 Aug 2021 09:15:47 -0400 Subject: [PATCH] build: fix volatile compatible-pointer-types warnings Happens when compiling with GCC 11 --- lib/wp/spa-type.c | 2 +- modules/module-mixer-api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wp/spa-type.c b/lib/wp/spa-type.c index 79c523b2..9f0dc9a9 100644 --- a/lib/wp/spa-type.c +++ b/lib/wp/spa-type.c @@ -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"), diff --git a/modules/module-mixer-api.c b/modules/module-mixer-api.c index 9e820580..b410a5ce 100644 --- a/modules/module-mixer-api.c +++ b/modules/module-mixer-api.c @@ -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" },