Commit 78c8bc9f authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-data: Add missing HAVE_TRACKER_FTS guards

Fixes build error with -Dfts=false, and a warning that must have
been there forever.

Closes: #53
parent b4491951
Pipeline #39856 failed with stage
in 6 minutes and 19 seconds
......@@ -1580,6 +1580,7 @@ close_database (TrackerDBInterface *db_interface)
}
}
#if HAVE_TRACKER_FTS
static gchar **
_fts_create_properties (GHashTable *properties)
{
......@@ -1607,6 +1608,7 @@ _fts_create_properties (GHashTable *properties)
return (gchar **) g_ptr_array_free (cols, FALSE);
}
#endif
void
tracker_db_interface_sqlite_fts_init (TrackerDBInterface *db_interface,
......
......@@ -1055,7 +1055,9 @@ tracker_db_manager_get_db_interface (TrackerDBManager *db_manager)
TRUE, &internal_error);
if (interface) {
#if HAVE_TRACKER_FTS
tracker_data_manager_init_fts (interface, FALSE);
#endif
} else {
if (g_async_queue_length_unlocked (db_manager->interfaces) == 0) {
g_critical ("Error opening database: %s", internal_error->message);
......
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