[tracker] Fixed harmless compilation warnings
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Fixed harmless compilation warnings
- Date: Fri, 13 Nov 2009 10:50:24 +0000 (UTC)
commit 53ff15d6d8b1dbfb046d51f249993c688ef2cb26
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Nov 13 11:43:36 2009 +0100
Fixed harmless compilation warnings
src/libtracker-gtk/tracker-ui.h | 2 +-
src/tracker-miner-fs/tracker-config.c | 2 +-
src/tracker-status-icon/eggaccelerators.c | 2 +-
utils/services/data-validator.c | 5 ++---
4 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-gtk/tracker-ui.h b/src/libtracker-gtk/tracker-ui.h
index 729927b..d68eaf0 100644
--- a/src/libtracker-gtk/tracker-ui.h
+++ b/src/libtracker-gtk/tracker-ui.h
@@ -32,7 +32,7 @@
* dragging and dropping keywords
**/
const GtkTargetEntry KEYWORD_DRAG_TYPES[] = {
- {"property/keyword", 0, 0 }
+ { (gchar *) "property/keyword", 0, 0 }
};
void
diff --git a/src/tracker-miner-fs/tracker-config.c b/src/tracker-miner-fs/tracker-config.c
index fd2463a..d2f31df 100644
--- a/src/tracker-miner-fs/tracker-config.c
+++ b/src/tracker-miner-fs/tracker-config.c
@@ -645,7 +645,7 @@ config_create_with_defaults (TrackerConfig *config,
*/
if (g_slist_length (paths) < 2) {
g_slist_free (paths);
- paths = g_slist_prepend (NULL, "$HOME");
+ paths = g_slist_prepend (NULL, (gpointer) "$HOME");
}
string_list = tracker_gslist_to_string_list (paths);
diff --git a/src/tracker-status-icon/eggaccelerators.c b/src/tracker-status-icon/eggaccelerators.c
index ca63e78..38724f7 100644
--- a/src/tracker-status-icon/eggaccelerators.c
+++ b/src/tracker-status-icon/eggaccelerators.c
@@ -361,7 +361,7 @@ egg_virtual_accelerator_name (guint accelerator_key,
static const gchar text_super[] = "<Super>";
static const gchar text_hyper[] = "<Hyper>";
guint l;
- gchar *keyval_name;
+ const gchar *keyval_name;
gchar *accelerator;
accelerator_mods &= EGG_VIRTUAL_MODIFIER_MASK;
diff --git a/utils/services/data-validator.c b/utils/services/data-validator.c
index 022c352..890b9b4 100644
--- a/utils/services/data-validator.c
+++ b/utils/services/data-validator.c
@@ -146,6 +146,8 @@ gint
main (gint argc, gchar **argv)
{
GOptionContext *context;
+ TrackerTurtleReader *reader;
+ GError *error = NULL;
g_type_init ();
@@ -176,9 +178,6 @@ main (gint argc, gchar **argv)
//"/home/ivan/devel/codethink/tracker-ssh/data/services"
load_ontology_files (ontology_dir);
- TrackerTurtleReader *reader;
- GError *error = NULL;
-
reader = tracker_turtle_reader_new (ttl_file, NULL);
while (error == NULL && tracker_turtle_reader_next (reader, &error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]