mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-04 00:00:12 +01:00
build: fix volatile compatible-pointer-types warnings
Happens when compiling with GCC 11
This commit is contained in:
parent
b9b722c125
commit
7abd3728e7
2 changed files with 2 additions and 2 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue