[tracker-miners/wip/carlosg/compiler-warnings: 3/12] tracker-control: Do not set volatile on g_once arguments
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/compiler-warnings: 3/12] tracker-control: Do not set volatile on g_once arguments
- Date: Sun, 28 Aug 2022 23:25:50 +0000 (UTC)
commit e1f3a7f0aa08587b32cf651601235fed513145be
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 28 23:38:18 2022 +0200
tracker-control: Do not set volatile on g_once arguments
It is a mistake to do so, and the compiler warns about it.
src/tracker-control/tracker-miner-files-index.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-control/tracker-miner-files-index.c b/src/tracker-control/tracker-miner-files-index.c
index ee5e586b6..8d7203de8 100644
--- a/src/tracker-control/tracker-miner-files-index.c
+++ b/src/tracker-control/tracker-miner-files-index.c
@@ -88,12 +88,12 @@ G_STATIC_ASSERT (G_N_ELEMENTS (tracker_miner_index_error_entries) == TRACKER_MIN
GQuark
tracker_miner_index_error_quark (void)
{
- static volatile gsize quark_volatile = 0;
+ static gsize quark = 0;
g_dbus_error_register_error_domain ("tracker-miner-index-error-quark",
- &quark_volatile,
+ &quark,
tracker_miner_index_error_entries,
G_N_ELEMENTS (tracker_miner_index_error_entries));
- return (GQuark) quark_volatile;
+ return (GQuark) quark;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]