summaryrefslogtreecommitdiff
path: root/thunarx
diff options
context:
space:
mode:
authorGaƫl Bonithon <gael@xfce.org>2021-08-14 14:02:16 +0200
committerAlexander Schwinn <alexxcons@xfce.org>2021-08-15 07:22:26 +0000
commiteec28a4c0fa1bcdfbd5c361b57aa79042e4def2c (patch)
tree66b39ee4a06176a806f893a65cf3dd7b3ce49d48 /thunarx
parentaacad3057b5a4eabbbdc0cbbcdab9b3056a7fdee (diff)
downloadthunar-eec28a4c0fa1bcdfbd5c361b57aa79042e4def2c.tar.gz
Remove wrong `volatile` qualifier
Triggers `-Wincompatible-pointer-types`, see documentation of `g_once_init_leave()`.
Diffstat (limited to 'thunarx')
-rw-r--r--thunarx/thunarx-file-info.c10
-rw-r--r--thunarx/thunarx-menu-provider.c10
-rw-r--r--thunarx/thunarx-preferences-provider.c10
-rw-r--r--thunarx/thunarx-property-page-provider.c10
-rw-r--r--thunarx/thunarx-provider-plugin.c10
-rw-r--r--thunarx/thunarx-renamer-provider.c10
6 files changed, 30 insertions, 30 deletions
diff --git a/thunarx/thunarx-file-info.c b/thunarx/thunarx-file-info.c
index 0879ad32..4305f2ea 100644
--- a/thunarx/thunarx-file-info.c
+++ b/thunarx/thunarx-file-info.c
@@ -54,10 +54,10 @@ static guint file_info_signals[LAST_SIGNAL];
GType
thunarx_file_info_get_type (void)
{
- static volatile gsize type__volatile = 0;
- GType type;
+ static gsize type__static = 0;
+ GType type;
- if (g_once_init_enter (&type__volatile))
+ if (g_once_init_enter (&type__static))
{
type = g_type_register_static_simple (G_TYPE_INTERFACE,
I_("ThunarxFileInfo"),
@@ -109,10 +109,10 @@ thunarx_file_info_get_type (void)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
- g_once_init_leave (&type__volatile, type);
+ g_once_init_leave (&type__static, type);
}
- return type__volatile;
+ return type__static;
}
diff --git a/thunarx/thunarx-menu-provider.c b/thunarx/thunarx-menu-provider.c
index 583e0f93..6fa48a1f 100644
--- a/thunarx/thunarx-menu-provider.c
+++ b/thunarx/thunarx-menu-provider.c
@@ -56,10 +56,10 @@
GType
thunarx_menu_provider_get_type (void)
{
- static volatile gsize type__volatile = 0;
- GType type;
+ static gsize type__static = 0;
+ GType type;
- if (g_once_init_enter (&type__volatile))
+ if (g_once_init_enter (&type__static))
{
type = g_type_register_static_simple (G_TYPE_INTERFACE,
I_("ThunarxMenuProvider"),
@@ -71,10 +71,10 @@ thunarx_menu_provider_get_type (void)
g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
- g_once_init_leave (&type__volatile, type);
+ g_once_init_leave (&type__static, type);
}
- return type__volatile;
+ return type__static;
}
diff --git a/thunarx/thunarx-preferences-provider.c b/thunarx/thunarx-preferences-provider.c
index 27231f2b..13f5075d 100644
--- a/thunarx/thunarx-preferences-provider.c
+++ b/thunarx/thunarx-preferences-provider.c
@@ -52,10 +52,10 @@
GType
thunarx_preferences_provider_get_type (void)
{
- static volatile gsize type__volatile = 0;
- GType type;
+ static gsize type__static = 0;
+ GType type;
- if (g_once_init_enter (&type__volatile))
+ if (g_once_init_enter (&type__static))
{
type = g_type_register_static_simple (G_TYPE_INTERFACE,
I_("ThunarxPreferencesProvider"),
@@ -67,10 +67,10 @@ thunarx_preferences_provider_get_type (void)
g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
- g_once_init_leave (&type__volatile, type);
+ g_once_init_leave (&type__static, type);
}
- return type__volatile;
+ return type__static;
}
diff --git a/thunarx/thunarx-property-page-provider.c b/thunarx/thunarx-property-page-provider.c
index 858205e9..8b623ee7 100644
--- a/thunarx/thunarx-property-page-provider.c
+++ b/thunarx/thunarx-property-page-provider.c
@@ -41,10 +41,10 @@
GType
thunarx_property_page_provider_get_type (void)
{
- static volatile gsize type__volatile = 0;
- GType type;
+ static gsize type__static = 0;
+ GType type;
- if (g_once_init_enter (&type__volatile))
+ if (g_once_init_enter (&type__static))
{
type = g_type_register_static_simple (G_TYPE_INTERFACE,
I_("ThunarxPropertyPageProvider"),
@@ -56,10 +56,10 @@ thunarx_property_page_provider_get_type (void)
g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
- g_once_init_leave (&type__volatile, type);
+ g_once_init_leave (&type__static, type);
}
- return type__volatile;
+ return type__static;
}
diff --git a/thunarx/thunarx-provider-plugin.c b/thunarx/thunarx-provider-plugin.c
index ef2a197f..d39b2d67 100644
--- a/thunarx/thunarx-provider-plugin.c
+++ b/thunarx/thunarx-provider-plugin.c
@@ -45,10 +45,10 @@ static void thunarx_provider_plugin_class_init (gpointer klass);
GType
thunarx_provider_plugin_get_type (void)
{
- static volatile gsize type__volatile = 0;
- GType type;
+ static gsize type__static = 0;
+ GType type;
- if (g_once_init_enter (&type__volatile))
+ if (g_once_init_enter (&type__static))
{
type = g_type_register_static_simple (G_TYPE_INTERFACE,
I_("ThunarxProviderPlugin"),
@@ -58,10 +58,10 @@ thunarx_provider_plugin_get_type (void)
NULL,
0);
- g_once_init_leave (&type__volatile, type);
+ g_once_init_leave (&type__static, type);
}
- return type__volatile;
+ return type__static;
}
diff --git a/thunarx/thunarx-renamer-provider.c b/thunarx/thunarx-renamer-provider.c
index 1e5188cb..aed1771c 100644
--- a/thunarx/thunarx-renamer-provider.c
+++ b/thunarx/thunarx-renamer-provider.c
@@ -39,10 +39,10 @@
GType
thunarx_renamer_provider_get_type (void)
{
- static volatile gsize type__volatile = 0;
- GType type;
+ static gsize type__static = 0;
+ GType type;
- if (g_once_init_enter (&type__volatile))
+ if (g_once_init_enter (&type__static))
{
type = g_type_register_static_simple (G_TYPE_INTERFACE,
I_("ThunarxRenamerProvider"),
@@ -54,10 +54,10 @@ thunarx_renamer_provider_get_type (void)
g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
- g_once_init_leave (&type__volatile, type);
+ g_once_init_leave (&type__static, type);
}
- return type__volatile;
+ return type__static;
}