[tracker-miners/wip/carlosg/compiler-warnings: 14/23] 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: 14/23] tracker-control: Do not set volatile on g_once arguments
- Date: Sun, 4 Sep 2022 21:39:19 +0000 (UTC)
commit e378969ba77b5b7478554cf8436a7d6733abd70e
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]