[tracker-miners/sam/warnings: 1/2] miners/fs: Add missing object casts to fix compile warnings
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/warnings: 1/2] miners/fs: Add missing object casts to fix compile warnings
- Date: Sat, 17 Nov 2018 10:49:04 +0000 (UTC)
commit 1d49d7b636322f86867e2b242ed36f61787c9cb3
Author: Sam Thursfield <sam afuera me uk>
Date: Sat Nov 17 11:47:15 2018 +0100
miners/fs: Add missing object casts to fix compile warnings
This fixes the following warnings:
../src/miners/fs/tracker-miner-files.c: In function ‘miner_files_process_file’:
../src/miners/fs/tracker-miner-files.c:2502:14: warning: assignment to ‘TrackerMinerFiles *’ {aka
‘struct TrackerMinerFiles *’} from incompatible pointer type ‘TrackerMinerFS *’ {aka ‘struct _TrackerMinerFS
*’} [-Wincompatible-pointer-types]
data->miner = g_object_ref (fs);
^
../src/miners/fs/tracker-miner-files.c: In function ‘miner_files_process_file_attributes’:
../src/miners/fs/tracker-miner-files.c:2604:14: warning: assignment to ‘TrackerMinerFiles *’ {aka
‘struct TrackerMinerFiles *’} from incompatible pointer type ‘TrackerMinerFS *’ {aka ‘struct _TrackerMinerFS
*’} [-Wincompatible-pointer-types]
data->miner = g_object_ref (fs);
src/miners/fs/tracker-miner-files.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 39e50d86a..719634ed9 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2499,7 +2499,7 @@ miner_files_process_file (TrackerMinerFS *fs,
const gchar *attrs;
data = g_slice_new0 (ProcessFileData);
- data->miner = g_object_ref (fs);
+ data->miner = TRACKER_MINER_FILES (g_object_ref (fs));
data->cancellable = g_object_ref (g_task_get_cancellable (task));
data->file = g_object_ref (file);
data->task = g_object_ref (task);
@@ -2601,7 +2601,7 @@ miner_files_process_file_attributes (TrackerMinerFS *fs,
const gchar *attrs;
data = g_slice_new0 (ProcessFileData);
- data->miner = g_object_ref (fs);
+ data->miner = TRACKER_MINER_FILES (g_object_ref (fs));
data->cancellable = g_object_ref (g_task_get_cancellable (task));
data->file = g_object_ref (file);
data->task = g_object_ref (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]