[tracker] Compilation warning fixes
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Compilation warning fixes
- Date: Wed, 2 Sep 2009 11:05:45 +0000 (UTC)
commit b14c95d3c77186e9545596f5b89585018a3c470b
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Sep 2 13:04:48 2009 +0200
Compilation warning fixes
src/libtracker-data/tracker-data-update.c | 7 ++++---
src/tracker-fts/tracker-fts.c | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 5b17d21..5cd71e1 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -608,10 +608,10 @@ static gboolean
value_set_add_value (GValueArray *value_set,
GValue *value)
{
- g_return_val_if_fail (G_VALUE_TYPE (value), FALSE);
-
gint i;
+ g_return_val_if_fail (G_VALUE_TYPE (value), FALSE);
+
for (i = 0; i < value_set->n_values; i++) {
if (value_equal (g_value_array_get_nth (value_set, i), value)) {
/* no change, value already in set */
@@ -748,10 +748,11 @@ cache_set_metadata_decomposed (TrackerProperty *property,
for (prop = properties; *prop; prop++) {
if (tracker_property_get_fulltext_indexed (*prop)
&& check_property_domain (*prop)) {
+ gint i;
+
old_values = get_property_values (*prop);
/* delete old fts entries */
- gint i;
for (i = 0; i < old_values->n_values; i++) {
tracker_fts_update_text (update_buffer.id, -1,
g_value_get_string (g_value_array_get_nth (old_values, i)));
diff --git a/src/tracker-fts/tracker-fts.c b/src/tracker-fts/tracker-fts.c
index 20863c5..38acef5 100644
--- a/src/tracker-fts/tracker-fts.c
+++ b/src/tracker-fts/tracker-fts.c
@@ -3271,7 +3271,7 @@ static int parseSpec(TableSpec *pSpec, int argc, const char *const*argv,
}
}
if( pSpec->nColumn==0 ){
- azArg[0] = "content";
+ azArg[0] = (char *) "content";
pSpec->nColumn = 1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]