[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 21:28:01 +0000 (UTC)
commit f406fd919fe56f3315e04dd0edd1b876603e2edd
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]