[tracker] Fix compile warnings



commit 2f7d79ff651a0509c1ca02824b3d292cddf36221
Author: Jürg Billeter <j bitron ch>
Date:   Wed Aug 26 10:39:10 2009 +0200

    Fix compile warnings

 src/libtracker-db/tracker-db-interface-sqlite.c |    3 ---
 src/libtracker-db/tracker-db-interface.c        |   14 ++++++--------
 2 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index 921f3c0..50a5dc7 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -104,9 +104,6 @@ tracker_db_interface_sqlite_enable_shared_cache (void)
 static void
 open_database (TrackerDBInterfaceSqlitePrivate *priv)
 {
-	gchar *err_msg = NULL;
-	const gchar *env_path;
-
 	g_assert (priv->filename != NULL);
 
 	if (!priv->ro) {
diff --git a/src/libtracker-db/tracker-db-interface.c b/src/libtracker-db/tracker-db-interface.c
index 4cc6df6..c7123b2 100644
--- a/src/libtracker-db/tracker-db-interface.c
+++ b/src/libtracker-db/tracker-db-interface.c
@@ -375,19 +375,17 @@ tracker_db_interface_end_transaction (TrackerDBInterface *interface)
 void
 tracker_db_interface_disconnect (TrackerDBInterface  *interface)
 {
-	TrackerDBInterfaceIface *iface;
-	g_return_val_if_fail (TRACKER_IS_DB_INTERFACE (interface), NULL);
-	iface = TRACKER_DB_INTERFACE_GET_IFACE (interface);
-	iface->disconnect (interface);
+	g_return_if_fail (TRACKER_IS_DB_INTERFACE (interface));
+
+	TRACKER_DB_INTERFACE_GET_IFACE (interface)->disconnect (interface);
 }
 
 void
 tracker_db_interface_reconnect (TrackerDBInterface  *interface)
 {
-	TrackerDBInterfaceIface *iface;
-	g_return_val_if_fail (TRACKER_IS_DB_INTERFACE (interface), NULL);
-	iface = TRACKER_DB_INTERFACE_GET_IFACE (interface);
-	iface->reconnect (interface);
+	g_return_if_fail (TRACKER_IS_DB_INTERFACE (interface));
+
+	TRACKER_DB_INTERFACE_GET_IFACE (interface)->reconnect (interface);
 }
 
 void



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