[tracker-miners/tracker-miners-2.2: 35/47] miners/fs: Fix compile warning in tracker-writeback-dispatcher.c
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/tracker-miners-2.2: 35/47] miners/fs: Fix compile warning in tracker-writeback-dispatcher.c
- Date: Mon, 5 Aug 2019 15:50:01 +0000 (UTC)
commit d7a3b3fc8b265dcf2a418ea32400a5ee36e9b1de
Author: Sam Thursfield <sam afuera me uk>
Date: Thu Jul 11 12:24:05 2019 +0100
miners/fs: Fix compile warning in tracker-writeback-dispatcher.c
Fixes this:
[3/4] Compiling C object
'src/miners/fs/8409082@@tracker-miner-fs@exe/tracker-writeback-dispatcher.c.o'.
../src/miners/fs/tracker-writeback-dispatcher.c: In function ‘writeback_dispatcher_writeback_file’:
../src/miners/fs/tracker-writeback-dispatcher.c:375:11: warning: assignment to ‘TrackerMinerFiles *’
{aka ‘struct TrackerMinerFiles *’} from incompatible pointer type ‘TrackerMinerFS *’ {aka ‘struct
_TrackerMinerFS *’} [-Wincompatible-pointer-types]
data->fs = g_object_ref (fs);
src/miners/fs/tracker-writeback-dispatcher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/miners/fs/tracker-writeback-dispatcher.c b/src/miners/fs/tracker-writeback-dispatcher.c
index 687a87133..8f8a38aeb 100644
--- a/src/miners/fs/tracker-writeback-dispatcher.c
+++ b/src/miners/fs/tracker-writeback-dispatcher.c
@@ -374,7 +374,7 @@ writeback_dispatcher_writeback_file (TrackerMinerFS *fs,
data->retry_timeout = 0;
data->self = self;
g_object_weak_ref (G_OBJECT (data->self), self_weak_notify, data);
- data->fs = g_object_ref (fs);
+ data->fs = TRACKER_MINER_FILES (g_object_ref (fs));
data->file = g_object_ref (file);
data->results = g_ptr_array_ref (results);
data->rdf_types = g_strdupv (rdf_types);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]