[gtk+] GtkSearchEngineTracker: avoid an unused variable warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSearchEngineTracker: avoid an unused variable warning
- Date: Wed, 1 Jun 2011 01:27:02 +0000 (UTC)
commit 1c261fe2aed40d8d1c6a08cca565429295e6ef23
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 31 21:26:40 2011 -0400
GtkSearchEngineTracker: avoid an unused variable warning
gtk/gtksearchenginetracker.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c
index 8e764a2..c368b27 100644
--- a/gtk/gtksearchenginetracker.c
+++ b/gtk/gtksearchenginetracker.c
@@ -304,7 +304,10 @@ static void
gtk_search_engine_tracker_start (GtkSearchEngine *engine)
{
GtkSearchEngineTracker *tracker;
- gchar *search_text, *location_uri;
+ gchar *search_text;
+#ifdef FTS_MATCHING
+ gchar *location_uri;
+#endif
GString *sparql;
tracker = GTK_SEARCH_ENGINE_TRACKER (engine);
@@ -322,9 +325,9 @@ gtk_search_engine_tracker_start (GtkSearchEngine *engine)
}
search_text = _gtk_query_get_text (tracker->priv->query);
- location_uri = _gtk_query_get_location (tracker->priv->query);
#ifdef FTS_MATCHING
+ location_uri = _gtk_query_get_location (tracker->priv->query);
/* Using FTS: */
sparql = g_string_new ("SELECT nie:url(?urn) "
"WHERE {"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]