[tracker] Fixed all build warnings and documentation warnings
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Fixed all build warnings and documentation warnings
- Date: Wed, 29 Apr 2009 08:18:28 -0400 (EDT)
commit 95b3417d5795ea8848a3b63053a79dcc75a35f3a
Author: Martyn Russell <martyn imendio com>
Date: Wed Apr 29 13:18:03 2009 +0100
Fixed all build warnings and documentation warnings
This doesn't fix valac generated source warnings, of which there are
only one or two.
---
src/libtracker-data/tracker-data-backup.c | 2 +
src/libtracker-data/tracker-turtle.c | 11 +++-
src/libtracker-gtk/tracker-keyword-store.c | 6 ++
src/libtracker-gtk/tracker-metadata-tile.c | 56 ++++++++++++-------
src/libtracker-gtk/tracker-tag-bar.c | 15 +++++-
src/libtracker-gtk/tracker-utils.c | 3 +
src/tracker-fts/tracker-fts.c | 13 ++++-
src/tracker-indexer/modules/evolution-common.c | 1 +
src/tracker-indexer/tracker-module-metadata.c | 21 +++++---
.../tracker-search-tool-callbacks.c | 7 +++
src/tracker-search-tool/tracker-search-tool.c | 29 +++++++++-
src/tracker-utils/tracker-tag.c | 8 +++-
src/trackerd/tracker-main.c | 2 +
src/trackerd/tracker-search.c | 10 +++-
tests/libtracker-common/tracker-dbus-test.c | 8 +++
.../tracker-indexer/tracker-metadata-utils-test.c | 7 ++-
utils/services/ttl_model.c | 2 +-
utils/services/ttl_model.h | 2 +-
18 files changed, 160 insertions(+), 43 deletions(-)
diff --git a/src/libtracker-data/tracker-data-backup.c b/src/libtracker-data/tracker-data-backup.c
index 8af7108..88189f9 100644
--- a/src/libtracker-data/tracker-data-backup.c
+++ b/src/libtracker-data/tracker-data-backup.c
@@ -108,7 +108,9 @@ tracker_data_backup_save (const gchar *turtle_filename,
GError **error)
{
TrackerDBResultSet *data;
+#if 0
TrackerClass *service;
+#endif
TurtleFile *turtle_file;
/* TODO: temporary location */
diff --git a/src/libtracker-data/tracker-turtle.c b/src/libtracker-data/tracker-turtle.c
index 6f16d04..9981099 100644
--- a/src/libtracker-data/tracker-turtle.c
+++ b/src/libtracker-data/tracker-turtle.c
@@ -131,9 +131,15 @@ commit_turtle_parse_info_optimizer (TurtleOptimizerInfo *info)
}
static void
-consume_triple_optimizer (void *user_data,
- const raptor_statement *triple)
+consume_triple_optimizer (const gchar *subject,
+ const gchar *predicate,
+ const gchar *object,
+ void *user_data)
{
+ g_critical ("This function is not yet ported:'%s', doing nothing here, -mr",
+ __FUNCTION__);
+
+#if 0
TurtleOptimizerInfo *info = user_data;
gchar *subject;
gchar *predicate;
@@ -169,6 +175,7 @@ consume_triple_optimizer (void *user_data,
g_strdup (predicate),
g_strdup (triple->object));
}
+#endif
}
static void
diff --git a/src/libtracker-gtk/tracker-keyword-store.c b/src/libtracker-gtk/tracker-keyword-store.c
index 8a5be2e..07a5357 100644
--- a/src/libtracker-gtk/tracker-keyword-store.c
+++ b/src/libtracker-gtk/tracker-keyword-store.c
@@ -36,7 +36,9 @@ static void tracker_keyword_store_tree_drag_source_init (GtkTreeDragSourceIface
static void tracker_keyword_store_finalize (GObject *object);
+#if 0
static void tracker_keyword_store_populate_cb (GPtrArray *result, GError *error, gpointer user_data);
+#endif
G_DEFINE_TYPE_WITH_CODE (TrackerKeywordStore, tracker_keyword_store, GTK_TYPE_LIST_STORE,
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE,
@@ -122,6 +124,8 @@ tracker_keyword_store_tree_drag_source_init (GtkTreeDragSourceIface *iface)
iface->drag_data_delete = tracker_keyword_store_drag_data_delete;
}
+#if 0
+
static void
tracker_keyword_store_populate_cb (GPtrArray *result, GError *error, gpointer user_data) {
GtkTreeIter iter;
@@ -145,6 +149,8 @@ tracker_keyword_store_populate_cb (GPtrArray *result, GError *error, gpointer us
g_clear_error (&error);
}
+#endif
+
static void
tracker_keyword_store_finalize (GObject *object)
{
diff --git a/src/libtracker-gtk/tracker-metadata-tile.c b/src/libtracker-gtk/tracker-metadata-tile.c
index 72afac7..973035c 100644
--- a/src/libtracker-gtk/tracker-metadata-tile.c
+++ b/src/libtracker-gtk/tracker-metadata-tile.c
@@ -78,6 +78,7 @@ static GObjectClass *parent_class = NULL;
static void tracker_metadata_tile_class_init (TrackerMetadataTileClass *class);
static void tracker_metadata_tile_init (TrackerMetadataTile *tile);
static gboolean tracker_metadata_tile_expose_event(GtkWidget *widget, GdkEventExpose *event);
+#if 0
static void tracker_metadata_tile_show (TrackerMetadataTile *tile);
static void _property_to_label (GtkWidget *label, const char *prop, const char *string);
static void _date_to_label (GtkWidget *label, const char *prop, const char *string);
@@ -87,11 +88,14 @@ static void _dimensions_to_label (GtkWidget *label, const char *width, const cha
static void _seconds_to_label (GtkWidget *label, const char *prop, const char *string);
static void _bitrate_to_label (GtkWidget *label, const char *prop, const char *string);
static void _int_to_label (GtkWidget *label, const char *prop, const char *string);
+#endif
static inline gboolean is_empty_string (const char *s);
/* structs & enums */
+#if 0
+
static const char *default_keys[] =
{
"File:Name",
@@ -103,6 +107,8 @@ static const char *default_keys[] =
NULL
};
+#endif
+
enum {
DEFAULT_NAME,
DEFAULT_PATH,
@@ -113,6 +119,8 @@ enum {
DEFAULT_N_KEYS
};
+#if 0
+
static const char *doc_keys[] =
{
"File:Name",
@@ -125,6 +133,8 @@ static const char *doc_keys[] =
NULL
};
+#endif
+
enum {
DOC_NAME,
DOC_SUBJECT,
@@ -136,7 +146,7 @@ enum {
DOC_N_KEYS
};
-
+#if 0
static const char *email_keys[] =
{
@@ -149,6 +159,8 @@ static const char *email_keys[] =
NULL
};
+#endif
+
enum {
EMAIL_SENDER,
EMAIL_SUBJECT,
@@ -159,6 +171,8 @@ enum {
EMAIL_N_KEYS
};
+#if 0
+
static const char *webhistory_keys[] =
{
"Doc:URL",
@@ -169,6 +183,8 @@ static const char *webhistory_keys[] =
NULL
};
+#endif
+
enum {
WEBHISTORY_URL,
WEBHISTORY_TITLE,
@@ -178,6 +194,7 @@ enum {
WEBHISTORY_N_KEYS
};
+#if 0
static const char *app_keys[] =
{
@@ -188,6 +205,8 @@ static const char *app_keys[] =
NULL
};
+#endif
+
enum {
APP_DISPLAYNAME,
APP_GENERIC_NAME,
@@ -196,6 +215,7 @@ enum {
APP_N_KEYS
};
+#if 0
static const char *audio_keys[] =
{
@@ -211,6 +231,8 @@ static const char *audio_keys[] =
NULL
};
+#endif
+
enum {
AUDIO_TITLE,
AUDIO_ARTIST,
@@ -224,6 +246,8 @@ enum {
AUDIO_N_KEYS
};
+#if 0
+
static const char *image_keys[] =
{
"File:Name",
@@ -239,6 +263,8 @@ static const char *image_keys[] =
NULL
};
+#endif
+
enum {
IMAGE_TITLE,
IMAGE_HEIGHT,
@@ -253,6 +279,8 @@ enum {
IMAGE_N_KEYS
};
+#if 0
+
static const char *video_keys[] =
{
"File:Name",
@@ -266,6 +294,8 @@ static const char *video_keys[] =
NULL
};
+#endif
+
enum {
VIDEO_TITLE,
VIDEO_HEIGHT,
@@ -284,6 +314,7 @@ is_empty_string (const char *s)
return s == NULL || s[0] == '\0';
}
+#if 0
static void
_show_labels (TrackerMetadataTile *tile, gboolean label_visible)
@@ -403,7 +434,6 @@ _tile_tracker_populate_email (char **array, GError *error, TrackerMetadataTile *
gtk_widget_show (priv->info2);
}
-
static void
_tile_tracker_populate_applications (char **array, GError *error, TrackerMetadataTile *tile)
{
@@ -440,11 +470,8 @@ _tile_tracker_populate_applications (char **array, GError *error, TrackerMetadat
_show_labels (tile, FALSE);
gtk_widget_show (priv->info1);
gtk_widget_show (priv->info2);
-
}
-
-
static void
_tile_tracker_populate_audio (char **array, GError *error, TrackerMetadataTile *tile)
{
@@ -520,9 +547,6 @@ _tile_tracker_populate_audio (char **array, GError *error, TrackerMetadataTile *
_size_to_label ( priv->info5, array[AUDIO_SIZE] , _("Size : <b>%s</b>"));
_property_to_label ( priv->info6, array[AUDIO_CODEC] , _("Codec : <b>%s</b>"));
-
-
-
/* free properties */
g_strfreev (array);
@@ -591,9 +615,6 @@ _tile_tracker_populate_image (char **array, GError *error, TrackerMetadataTile *
_property_to_label ( priv->info5, array[IMAGE_FOCAL] , _("Focal Length : <b>%s</b>"));
_property_to_label ( priv->info6, array[IMAGE_EXPO] , _("Exposure Time : <b>%s</b>"));
-
-
-
tracker_metadata_tile_show (tile);
g_strfreev (array);
}
@@ -623,11 +644,8 @@ _tile_tracker_populate_video (char **array, GError *error, TrackerMetadataTile *
_property_to_label ( priv->info5, array[VIDEO_CODEC] , _("Encoded In : <b>%s</b>"));
_property_to_label ( priv->info6, array[VIDEO_FRAMERATE] , _("Framerate : <b>%s</b>"));
-
-
tracker_metadata_tile_show (tile);
g_strfreev (array);
-
}
/* populates the metadata tile for a document */
@@ -656,12 +674,10 @@ _tile_tracker_populate_documents (char **array, GError *error, TrackerMetadataTi
_date_to_label ( priv->info5, array[DOC_CREATED] , _("Created : <b>%s</b>"));
_property_to_label ( priv->info6, array[DOC_COMMENTS] , _("Comments : <b>%s</b>"));
-
tracker_metadata_tile_show (tile);
g_strfreev (array);
}
-
/*populates the metadata tile for a web history url */
static void
_tile_tracker_populate_webhistory(char **array, GError *error, TrackerMetadataTile *tile )
@@ -690,11 +706,8 @@ _tile_tracker_populate_webhistory(char **array, GError *error, TrackerMetadataTi
_show_labels (tile, FALSE);
gtk_widget_show (priv->info1);
gtk_widget_show (priv->info2);
-
}
-
-
/* UTILILTY FUNCTIONS FOR CONVERSIONS */
/* Converts bitrate to kbs */
@@ -913,7 +926,7 @@ _property_to_label (GtkWidget *label, const char *prop, const char *string)
}
}
-
+#endif
/**
* tracker_metadata_tile_set_uri:
@@ -1040,7 +1053,6 @@ tracker_metadata_tile_set_uri (TrackerMetadataTile *tile, const gchar *uri,
gtk_widget_queue_draw (GTK_WIDGET (tile));
}
-#endif
static void
tracker_metadata_tile_show (TrackerMetadataTile *tile)
@@ -1060,6 +1072,8 @@ tracker_metadata_tile_show (TrackerMetadataTile *tile)
}
}
+#endif
+
static gboolean
tracker_metadata_tile_toggle_view (GtkWidget *button, TrackerMetadataTile *tile)
{
diff --git a/src/libtracker-gtk/tracker-tag-bar.c b/src/libtracker-gtk/tracker-tag-bar.c
index 311338f..9fc6e00 100644
--- a/src/libtracker-gtk/tracker-tag-bar.c
+++ b/src/libtracker-gtk/tracker-tag-bar.c
@@ -36,7 +36,10 @@ G_DEFINE_TYPE (TrackerTagBar, tracker_tag_bar, GTK_TYPE_HBOX);
/* FORWARD DECLARATIONS */
+#if 0
static void _tag_bar_add_tag (TrackerTagBar *bar, GtkWidget *box, const char *tag);
+#endif
+
static void _tag_launch_search (const gchar *tag);
/* STRUCTS & ENUMS */
@@ -61,6 +64,8 @@ struct _TrackerTagBarPrivate
GtkWidget *entry;
};
+#if 0
+
/* CALLBACKS */
static void
_keywords_reply (char **array, GError *error, TrackerTagBar *bar)
@@ -133,6 +138,8 @@ _on_tag_button_press_event (GtkWidget *button,
return FALSE;
}
+#endif
+
static void
_tag_launch_search (const gchar *tag)
{
@@ -166,7 +173,9 @@ static void
remove_tag_activate_cb(GtkMenuItem *menu_item, TrackerTagBar *bar)
{
TrackerTagBarPrivate *priv;
+#if 0
GError *error = NULL;
+#endif
char *args[1];
priv = TRACKER_TAG_BAR_GET_PRIVATE (bar);
@@ -206,8 +215,10 @@ _on_apply_add_tag (GtkButton *but, TrackerTagBar *bar)
{
TrackerTagBarPrivate *priv;
const gchar *text;
+#if 0
gchar **tags;
GError *error = NULL;
+#endif
priv = TRACKER_TAG_BAR_GET_PRIVATE (bar);
@@ -293,6 +304,8 @@ _on_add_tag_clicked (GtkButton *but, TrackerTagBar *bar)
/* UTILS */
+#if 0
+
static void
_tag_bar_add_tag (TrackerTagBar *bar, GtkWidget *box, const char *tag)
{
@@ -324,7 +337,6 @@ _tag_bar_add_tag (TrackerTagBar *bar, GtkWidget *box, const char *tag)
/* HEADER FUNCTIONS */
/* TODO: Port to SPARQL */
-#if 0
void
tracker_tag_bar_set_uri (TrackerTagBar *bar, ServiceType type, const gchar *uri)
{
@@ -341,6 +353,7 @@ tracker_tag_bar_set_uri (TrackerTagBar *bar, ServiceType type, const gchar *uri)
(TrackerArrayReply)_keywords_reply,
bar);
}
+
#endif
/* TRACKER TAG BAR NEW */
diff --git a/src/libtracker-gtk/tracker-utils.c b/src/libtracker-gtk/tracker-utils.c
index 816da9a..f874c55 100644
--- a/src/libtracker-gtk/tracker-utils.c
+++ b/src/libtracker-gtk/tracker-utils.c
@@ -47,7 +47,10 @@ tracker_keyword_array_to_glist (gchar **array)
GList *
tracker_get_all_keywords (TrackerClient *tracker_client)
{
+#if 0
GPtrArray *out_array;
+#endif
+
GList *list = NULL;
GError *error = NULL;
diff --git a/src/tracker-fts/tracker-fts.c b/src/tracker-fts/tracker-fts.c
index 77e0cbe..5119b7c 100644
--- a/src/tracker-fts/tracker-fts.c
+++ b/src/tracker-fts/tracker-fts.c
@@ -309,7 +309,9 @@ SQLITE_EXTENSION_INIT1
# define FTSTRACE(A)
#endif
+#if 0
static int default_column = 0;
+#endif
/* Functions from Tracker */
#if 0
@@ -633,6 +635,7 @@ static void append(StringBuffer *sb, const char *zFrom){
nappend(sb, zFrom, strlen(zFrom));
}
+#if 0
/* Append a list of strings separated by commas. */
static void appendList(StringBuffer *sb, int nString, char **azString){
int i;
@@ -641,6 +644,7 @@ static void appendList(StringBuffer *sb, int nString, char **azString){
append(sb, azString[i]);
}
}
+#endif
static int endsInWhiteSpace(StringBuffer *p){
return stringBufferLength(p)>0 &&
@@ -1083,7 +1087,7 @@ static void plrDestroy(PLReader *pReader){
SCRAMBLE(pReader);
}
-
+#if 0
/* because plrDestroy should only be called when plrAtEnd is true,
we create a new convenience function to do this in one call */
static void plrEndAndDestroy (PLReader *pReader){
@@ -1094,6 +1098,7 @@ static void plrEndAndDestroy (PLReader *pReader){
plrDestroy (pReader);
}
+#endif
/*******************************************************************/
/* PLWriter is used in constructing a document's position list. As a
@@ -3563,7 +3568,7 @@ static int fulltextDestroy(sqlite3_vtab *pVTab){
static int fulltextOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
fulltext_cursor *c;
- fulltext_vtab *v = (fulltext_vtab *)pVTab;
+ /* fulltext_vtab *v = (fulltext_vtab *)pVTab; */
c = (fulltext_cursor *) sqlite3_malloc(sizeof(fulltext_cursor));
if( c ){
memset(c, 0, sizeof(fulltext_cursor));
@@ -3929,6 +3934,7 @@ static void snippetAllOffsets(fulltext_cursor *p){
trimSnippetOffsetsForNear(&p->q, &p->snippet);
}
+#if 0
/*
** Convert the information in the aMatch[] array of the snippet
** into the string zOffset[0..nOffset-1]. This string is used as
@@ -3959,6 +3965,7 @@ static void snippetOffsetText(Snippet *p){
p->zOffset = stringBufferData(&sb);
p->nOffset = stringBufferLength(&sb);
}
+#endif
/*
** zDoc[0..nDoc-1] is phrase of text. aMatch[0..nMatch-1] are a set
@@ -4886,6 +4893,7 @@ int Catid,
}
+#if 0
/* Add doclists for all terms in [pValues] to pendingTerms table. */
static int insertTerms(fulltext_vtab *v, sqlite_int64 iDocid,
sqlite3_value **pValues){
@@ -4915,6 +4923,7 @@ static int insertTerms(fulltext_vtab *v, sqlite_int64 iDocid,
return SQLITE_OK;
}
+#endif
/* Add empty doclists for all terms in the given row's content to
** pendingTerms.
diff --git a/src/tracker-indexer/modules/evolution-common.c b/src/tracker-indexer/modules/evolution-common.c
index fec5bf1..ca43af1 100644
--- a/src/tracker-indexer/modules/evolution-common.c
+++ b/src/tracker-indexer/modules/evolution-common.c
@@ -31,6 +31,7 @@
#include <tracker-indexer/tracker-module-metadata-utils.h>
#include <tracker-indexer/tracker-module-metadata.h>
+#include <tracker-indexer/tracker-module-metadata-private.h>
#include "evolution-common.h"
diff --git a/src/tracker-indexer/tracker-module-metadata.c b/src/tracker-indexer/tracker-module-metadata.c
index 027fd4c..541953e 100644
--- a/src/tracker-indexer/tracker-module-metadata.c
+++ b/src/tracker-indexer/tracker-module-metadata.c
@@ -86,7 +86,8 @@ tracker_module_metadata_finalize (GObject *object)
/**
* tracker_module_metadata_add_take_string:
* @metadata: A #TrackerModuleMetadata
- * @field_name: Field name for the metadata to insert
+ * @subject: The subject this metadata applies to (for example, a URI).
+ * @predicate: The key to which the value will be assigned.
* @value: Value for the metadata
*
* Adds a new metadata element as a string into @metadata.
@@ -128,7 +129,8 @@ tracker_module_metadata_add_take_string (TrackerModuleMetadata *metadata,
/**
* tracker_module_metadata_add_string:
* @metadata: A #TrackerModuleMetadata
- * @field_name: Field name for the metadata to insert
+ * @subject: The subject this metadata applies to (for example, a URI).
+ * @predicate: The key to which the value will be assigned.
* @value: Value for the metadata
*
* Adds a new metadata element as a string into @metadata.
@@ -152,7 +154,8 @@ tracker_module_metadata_add_string (TrackerModuleMetadata *metadata,
/**
* tracker_module_metadata_add_int:
* @metadata: A #TrackerModuleMetadata
- * @field_name: Field name for the metadata to insert
+ * @subject: The subject this metadata applies to (for example, a URI).
+ * @predicate: The key to which the value will be assigned.
* @value: Value for the metadata
*
* Adds a new metadata element as a integer into @metadata.
@@ -176,7 +179,8 @@ tracker_module_metadata_add_int (TrackerModuleMetadata *metadata,
/**
* tracker_module_metadata_add_uint:
* @metadata: A #TrackerModuleMetadata
- * @field_name: Field name for the metadata to insert
+ * @subject: The subject this metadata applies to (for example, a URI).
+ * @predicate: The key to which the value will be assigned.
* @value: Value for the metadata
*
* Adds a new metadata element as an unsigned integer into @metadata.
@@ -200,7 +204,8 @@ tracker_module_metadata_add_uint (TrackerModuleMetadata *metadata,
/**
* tracker_module_metadata_add_double:
* @metadata: A #TrackerModuleMetadata
- * @field_name: Field name for the metadata to insert
+ * @subject: The subject this metadata applies to (for example, a URI).
+ * @predicate: The key to which the value will be assigned.
* @value: Value for the metadata
*
* Adds a new metadata element as a double into @metadata.
@@ -224,7 +229,8 @@ tracker_module_metadata_add_double (TrackerModuleMetadata *metadata,
/**
* tracker_module_metadata_add_float:
* @metadata: A #TrackerModuleMetadata
- * @field_name: Field name for the metadata to insert
+ * @subject: The subject this metadata applies to (for example, a URI).
+ * @predicate: The key to which the value will be assigned.
* @value: Value for the metadata
*
* Adds a new metadata element as a float into @metadata.
@@ -248,7 +254,8 @@ tracker_module_metadata_add_float (TrackerModuleMetadata *metadata,
/**
* tracker_module_metadata_add_date:
* @metadata: A #TrackerModuleMetadata
- * @field_name: Field name for the metadata to insert
+ * @subject: The subject this metadata applies to (for example, a URI).
+ * @predicate: The key to which the value will be assigned.
* @value: Value for the metadata
*
* Adds a new metadata element as a time_t into @metadata.
diff --git a/src/tracker-search-tool/tracker-search-tool-callbacks.c b/src/tracker-search-tool/tracker-search-tool-callbacks.c
index b35bdcf..0c72a98 100644
--- a/src/tracker-search-tool/tracker-search-tool-callbacks.c
+++ b/src/tracker-search-tool/tracker-search-tool-callbacks.c
@@ -361,6 +361,8 @@ display_dialog_file_open_limit (GtkWidget * window,
return response;
}
+#if 0
+
static void
display_dialog_could_not_open_file (GtkWidget * window,
const gchar * file,
@@ -393,6 +395,8 @@ display_dialog_could_not_open_file (GtkWidget * window,
g_free (primary);
}
+#endif
+
static void
display_dialog_could_not_open_folder (GtkWidget * window,
const gchar * folder)
@@ -459,6 +463,8 @@ select_changed_cb (GtkTreeSelection *treeselection,
#endif
}
+#if 0
+
static GdkPixbuf *
get_large_icon (const gchar * local_uri,
gboolean is_local_file,
@@ -502,6 +508,7 @@ get_large_icon (const gchar * local_uri,
return temp;
}
+#endif
void
tracker_update_metadata_tile (GSearchWindow *gsearch)
diff --git a/src/tracker-search-tool/tracker-search-tool.c b/src/tracker-search-tool/tracker-search-tool.c
index 79ddff8..8ad87f8 100644
--- a/src/tracker-search-tool/tracker-search-tool.c
+++ b/src/tracker-search-tool/tracker-search-tool.c
@@ -98,6 +98,8 @@ struct _GSearchOptionTemplate {
};
+#if 0
+
static char *search_service_types[] = {
"Files",
"Folders",
@@ -134,6 +136,8 @@ static char *search_service_types[] = {
NULL
};
+#endif
+
static service_info_t services[] = {
#if 0
{ "Emails", N_("Emails"), "stock_mail", NULL, SERVICE_EMAILS, NULL, FALSE, 0, 0},
@@ -233,7 +237,9 @@ static const char * GSearchUiDescription =
" </popup>"
"</ui>";
+#if 0
static void set_snippet (gchar * snippet, GError *error, gpointer user_data);
+#endif
static void
display_dialog_character_set_conversion_error (GtkWidget * window,
@@ -335,9 +341,9 @@ process_snippets (GSearchWindow * gsearch)
return FALSE;
}
+#if 0
SnippetRow *snippet = g_queue_pop_head (gsearch->snippet_queue);
-#if 0
tracker_search_get_snippet_async (tracker_client, snippet->type, snippet->uri, gsearch->search_term, set_snippet, snippet);
#endif
@@ -414,6 +420,8 @@ free_snippet (SnippetRow * snippet_row)
g_free (snippet_row);
}
+#if 0
+
static void
set_snippet (gchar * snippet,
GError * error,
@@ -642,7 +650,6 @@ add_application_to_search_results (const gchar * uri,
-1);
}
-
static void
set_suggestion (gchar * suggestion,
GError * error,
@@ -702,6 +709,8 @@ add_no_files_found_message (GSearchWindow * gsearch)
}
}
+#endif
+
void
update_search_counts (GSearchWindow * gsearch)
{
@@ -1476,7 +1485,9 @@ get_meta_table_data (gpointer value,
gpointer data)
{
gchar **meta;
+#if 0
GSearchWindow * gsearch = data;
+#endif
meta = (char **)value;
@@ -1524,6 +1535,8 @@ get_meta_table_data (gpointer value,
#endif
}
+#if 0
+
static gint
str_in_array (const gchar *str,
gchar **array)
@@ -1566,6 +1579,8 @@ populate_hit_counts (gpointer value,
}
}
+#endif
+
static void
update_page_count_label (GSearchWindow * gsearch)
{
@@ -1623,6 +1638,8 @@ init_tab (GSearchWindow * gsearch,
gtk_action_set_sensitive (action, (gsearch->type < 10));
}
+#if 0
+
static void
get_hit_count (GPtrArray *out_array,
GError *error,
@@ -1718,6 +1735,8 @@ get_hit_count (GPtrArray *out_array,
do_search (gsearch, gsearch->search_term, TRUE, 0);
}
+#endif
+
void
select_category (GtkTreeSelection * treeselection,
gpointer user_data)
@@ -1808,13 +1827,15 @@ start_new_search (GSearchWindow * gsearch,
#endif
}
+#if 0
+
static void
end_refresh_count (int count, GError * error, gpointer user_data)
{
GSearchWindow *gsearch = user_data;
+#if 0
service_info_t * service;
-#if 0
for (service = services; service->service; ++service) {
if (service->service_type == gsearch->current_service->service_type) {
service->hit_count = count;
@@ -1827,6 +1848,8 @@ end_refresh_count (int count, GError * error, gpointer user_data)
}
+#endif
+
void
end_search (GPtrArray * out_array,
GError * error,
diff --git a/src/tracker-utils/tracker-tag.c b/src/tracker-utils/tracker-tag.c
index aaf8ec8..870244d 100644
--- a/src/tracker-utils/tracker-tag.c
+++ b/src/tracker-utils/tracker-tag.c
@@ -81,6 +81,8 @@ static GOptionEntry entries[] = {
{ NULL }
};
+#if 0
+
static void
get_meta_table_data (gpointer value)
{
@@ -101,6 +103,8 @@ get_meta_table_data (gpointer value)
g_print ("\n");
}
+#endif
+
int
main (int argc, char **argv)
{
@@ -405,9 +409,11 @@ main (int argc, char **argv)
g_strfreev (results);
}
}
-#endif
finish:
+
+#endif
+
g_strfreev (tags_to_remove);
g_strfreev (tags_to_add);
g_strfreev (search_resolved);
diff --git a/src/trackerd/tracker-main.c b/src/trackerd/tracker-main.c
index 42abfc0..226104f 100644
--- a/src/trackerd/tracker-main.c
+++ b/src/trackerd/tracker-main.c
@@ -655,6 +655,7 @@ get_ttl_backup_filename (void)
return private->ttl_backup_file;
}
+#if 0
static void
backup_user_metadata (TrackerConfig *config, TrackerLanguage *language)
{
@@ -682,6 +683,7 @@ backup_user_metadata (TrackerConfig *config, TrackerLanguage *language)
/* Shutdown the DB stack */
tracker_data_manager_shutdown ();
}
+#endif
/*
* TODO: Ugly hack counting signals because the indexer is sending two "Finished" signals
diff --git a/src/trackerd/tracker-search.c b/src/trackerd/tracker-search.c
index 99314ba..f652d54 100644
--- a/src/trackerd/tracker-search.c
+++ b/src/trackerd/tracker-search.c
@@ -106,6 +106,7 @@ tracker_search_new (TrackerConfig *config,
return object;
}
+#if 0
static const gchar *
search_utf8_p_from_offset_skipping_decomp (const gchar *str,
@@ -208,7 +209,6 @@ search_get_word_break (const char *a)
return value;
}
-
static gboolean
search_is_word_break (const char a)
{
@@ -385,6 +385,8 @@ search_get_snippet (const gchar *text,
}
}
+#endif
+
void
tracker_search_get_snippet (TrackerSearch *object,
const gchar *uri,
@@ -393,7 +395,9 @@ tracker_search_get_snippet (TrackerSearch *object,
GError **error)
{
TrackerDBInterface *iface;
+#if 0
TrackerDBResultSet *result_set;
+#endif
GError *actual_error = NULL;
guint request_id;
gchar *snippet = NULL;
@@ -483,10 +487,14 @@ tracker_search_suggest (TrackerSearch *object,
DBusGMethodInvocation *context,
GError **error)
{
+#if 0
GError *actual_error = NULL;
+#endif
TrackerSearchPrivate *priv;
guint request_id;
+#if 0
gchar *value;
+#endif
request_id = tracker_dbus_get_next_request_id ();
diff --git a/tests/libtracker-common/tracker-dbus-test.c b/tests/libtracker-common/tracker-dbus-test.c
index ae91c23..85678f1 100644
--- a/tests/libtracker-common/tracker-dbus-test.c
+++ b/tests/libtracker-common/tracker-dbus-test.c
@@ -65,12 +65,16 @@ test_slist_to_strv (void)
slist_to_strv (TRUE);
}
+#if 0
+
static void
test_slist_to_strv_nonutf8 (void)
{
slist_to_strv (FALSE);
}
+#endif
+
static void
async_queue_to_strv (gboolean utf8)
{
@@ -114,12 +118,16 @@ test_async_queue_to_strv (void)
async_queue_to_strv (TRUE);
}
+#if 0
+
static void
test_async_queue_to_strv_nonutf8 (void)
{
async_queue_to_strv (FALSE);
}
+#endif
+
static void
test_results_ptr_array_free (void)
{
diff --git a/tests/tracker-indexer/tracker-metadata-utils-test.c b/tests/tracker-indexer/tracker-metadata-utils-test.c
index e063649..f667bfc 100644
--- a/tests/tracker-indexer/tracker-metadata-utils-test.c
+++ b/tests/tracker-indexer/tracker-metadata-utils-test.c
@@ -17,12 +17,13 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
-#include <glib.h>
+
+#include <glib-object.h>
#include <tracker-test-helpers.h>
-void
-test_something () {
+static void
+test_something (void) {
g_assert_cmpint (1, ==, 1);
return;
}
diff --git a/utils/services/ttl_model.c b/utils/services/ttl_model.c
index c7ef756..c2e2c71 100644
--- a/utils/services/ttl_model.c
+++ b/utils/services/ttl_model.c
@@ -80,7 +80,7 @@ ttl_model_property_free (OntologyProperty *def)
}
OntologyDescription *
-ttl_model_description_new ()
+ttl_model_description_new (void)
{
OntologyDescription *desc;
diff --git a/utils/services/ttl_model.h b/utils/services/ttl_model.h
index b527561..4695226 100644
--- a/utils/services/ttl_model.h
+++ b/utils/services/ttl_model.h
@@ -43,7 +43,7 @@ typedef struct {
OntologyClass * ttl_model_class_new (const gchar *classname);
void ttl_model_class_free (OntologyClass *klass);
-OntologyDescription *ttl_model_description_new ();
+OntologyDescription *ttl_model_description_new (void);
void ttl_model_description_free (OntologyDescription *desc);
OntologyProperty *ttl_model_property_new (gchar *propname);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]