[tracker-miners/sam/test-runner-fix: 36/39] miners/fs: Fix compile warning
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/test-runner-fix: 36/39] miners/fs: Fix compile warning
- Date: Sat, 17 Nov 2018 10:55:48 +0000 (UTC)
commit 1af8cb6d75dadfcae98fce91cba2efb803501478
Author: Sam Thursfield <sam afuera me uk>
Date: Sat Nov 17 11:46:19 2018 +0100
miners/fs: Fix compile warning
Fixes the following:
[9/61] Compiling C object 'src/miners/...miner-fs@exe/tracker-miner-files.c.o'.
../src/miners/fs/tracker-miner-files.c: In function ‘process_file_cb’:
../src/miners/fs/tracker-miner-files.c:2437:11: warning: passing argument 1 of ‘g_free’ discards
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
src/miners/fs/tracker-miner-files.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 39e50d86a..fa5d98fd8 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2354,7 +2354,8 @@ process_file_cb (GObject *object,
TrackerMinerFilesPrivate *priv;
TrackerResource *resource;
ProcessFileData *data;
- const gchar *mime_type, *urn, *parent_urn;
+ const gchar *mime_type, *urn;
+ gchar *parent_urn;
gchar *delete_properties_sparql = NULL, *mount_point_sparql;
GFileInfo *file_info;
guint64 time_;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]