Commit 1d49d7b6 authored by Sam Thursfield's avatar Sam Thursfield

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);
parent bf9bdedb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment