[tracker] libtracker-data: Fix C89 warning



commit 5a7babc41e335b93e1949487a7ffc015fc421e15
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 2 13:49:56 2010 +0100

    libtracker-data: Fix C89 warning

 src/libtracker-data/tracker-data-update.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index ee97980..ffe3451 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1423,9 +1423,11 @@ tracker_data_delete_statement (const gchar  *graph,
 	} else {
 		field = tracker_ontologies_get_property_by_uri (predicate);
 		if (field != NULL) {
+			gint id;
+
 			change = delete_metadata_decomposed (field, object, error);
 
-			gint id = tracker_property_get_id (field);
+			id = tracker_property_get_id (field);
 			if (!in_journal_replay && change) {
 				if (tracker_property_get_data_type (field) == TRACKER_PROPERTY_TYPE_RESOURCE) {
 					tracker_db_journal_append_delete_statement_id (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]