[anjal] Compiler warnings fix for main.c
- From: Yan Li <yanli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] Compiler warnings fix for main.c
- Date: Fri, 25 Sep 2009 08:54:21 +0000 (UTC)
commit d2aae79dd4ddd743c3ecdd00f0aaddadd70a5a71
Author: Yan Li <yan i li intel com>
Date: Fri Sep 25 10:38:44 2009 +0800
Compiler warnings fix for main.c
src/main.c | 30 +++++++++++++++++++++---------
1 files changed, 21 insertions(+), 9 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 0298304..740a5cf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -69,10 +71,10 @@ static gchar **remaining_args;
#if HAVE_UNIQUE
static UniqueResponse
-mail_message_received_cb (UniqueApp *app,
+mail_message_received_cb (UniqueApp *app G_GNUC_UNUSED,
gint command,
UniqueMessageData *message_data,
- guint time_,
+ guint time_ G_GNUC_UNUSED,
gpointer user_data)
{
gchar *url;
@@ -124,7 +126,7 @@ check_and_set_default_mail (void)
}
static gboolean
-idle_cb (MailShell *shell)
+idle_cb (MailShell *shell G_GNUC_UNUSED)
{
if (default_app) {
check_and_set_default_mail ();
@@ -206,13 +208,12 @@ main (int argc, char *argv[])
set_paths ();
#endif
-
static GOptionEntry entries[] = {
- { "windowed", 'w', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_NONE, &windowed,N_("Run Anjal in a window"), NULL },
+ { "windowed", 'w', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_NONE, &windowed,N_("Run Anjal in a window"), NULL },
{ "default-mailer", 'd', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_NONE, &default_app,N_("Make Anjal the default email client"), NULL },
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &remaining_args, NULL, NULL },
- { NULL }
- };
+ { NULL, 0, 0, 0, NULL, NULL, NULL }
+ };
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
@@ -288,12 +289,14 @@ main (int argc, char *argv[])
}
#ifndef HACK
-gpointer em_format_html_print_new(gpointer p1, int i)
+gpointer em_format_html_print_new(gpointer p1 G_GNUC_UNUSED,
+ int i G_GNUC_UNUSED)
{
return NULL;
}
-void em_format_html_print_raw_message (gpointer p1, gpointer p2)
+void em_format_html_print_raw_message (gpointer p1 G_GNUC_UNUSED,
+ gpointer p2 G_GNUC_UNUSED)
{
return ;
}
@@ -302,38 +305,47 @@ void
eab_merging_book_commit_contact ()
{
}
+
void
e_searching_tokenizer_set_primary_case_sensitivity ()
{
}
+
void
eab_prompt_save_dialog ()
{
}
+
void
eab_merging_book_add_contact ()
{
}
+
void
e_searching_tokenizer_match_count ()
{
}
+
void
addressbook_load_cancel()
{
}
+
void
e_searching_tokenizer_new ()
{
}
+
void
e_searching_tokenizer_set_primary_search_string()
{
}
+
void
addressbook_load()
{
}
+
void
eab_load_error_dialog()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]