[evolution-data-server/gnome-3-6] Bug #691126 - Fix warnings found by Clang
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-6] Bug #691126 - Fix warnings found by Clang
- Date: Fri, 18 Jan 2013 11:17:01 +0000 (UTC)
commit 18e0cdff26753531cd90319c86b82e60350c7075
Author: Milan Crha <mcrha redhat com>
Date: Fri Jan 18 12:15:42 2013 +0100
Bug #691126 - Fix warnings found by Clang
calendar/libecal/e-cal.c | 2 +-
calendar/libedata-cal/e-data-cal.c | 4 ++--
camel/camel-imapx-server.c | 2 +-
camel/camel-imapx-utils.c | 1 -
camel/camel-search-sql-sexp.c | 2 +-
camel/providers/nntp/camel-nntp-store.c | 2 +-
6 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/calendar/libecal/e-cal.c b/calendar/libecal/e-cal.c
index 810f3ea..3c43bed 100644
--- a/calendar/libecal/e-cal.c
+++ b/calendar/libecal/e-cal.c
@@ -241,7 +241,7 @@ get_status_from_error (const GError *error)
#undef err
if G_LIKELY (error == NULL)
- return Success;
+ return E_CALENDAR_STATUS_OK;
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_DBUS_ERROR)) {
gchar *name;
diff --git a/calendar/libedata-cal/e-data-cal.c b/calendar/libedata-cal/e-data-cal.c
index 7ffc40e..d2f3bcf 100644
--- a/calendar/libedata-cal/e-data-cal.c
+++ b/calendar/libedata-cal/e-data-cal.c
@@ -121,12 +121,12 @@ typedef struct {
/* OP_MODIFY_OBJECTS */
struct _mo {
GSList *calobjs;
- EDataCalObjModType mod;
+ CalObjModType mod; /* corresponds to EDataCalObjModType */
} mo;
/* OP_REMOVE_OBJECTS */
struct _ro {
GSList *ids;
- EDataCalObjModType mod;
+ CalObjModType mod; /* corresponds to EDataCalObjModType */
} ro;
/* OP_GET_TIMEZONE */
gchar *tzid;
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c
index d414db4..75b73f6 100644
--- a/camel/camel-imapx-server.c
+++ b/camel/camel-imapx-server.c
@@ -5618,7 +5618,7 @@ imapx_command_delete_folder_done (CamelIMAPXServer *is,
GError **error)
{
CamelIMAPXJob *job;
- gboolean success;
+ gboolean success = TRUE;
job = camel_imapx_command_get_job (ic);
g_return_val_if_fail (CAMEL_IS_IMAPX_JOB (job), FALSE);
diff --git a/camel/camel-imapx-utils.c b/camel/camel-imapx-utils.c
index e3ed570..b5601bd 100644
--- a/camel/camel-imapx-utils.c
+++ b/camel/camel-imapx-utils.c
@@ -132,7 +132,6 @@ imapx_parse_flags (CamelIMAPXStream *stream,
}
found:
- tok = tok; /* fixes stupid warning */
g_free (upper);
} else if (tok != ')') {
g_set_error (error, CAMEL_IMAPX_ERROR, 1, "expecting flag");
diff --git a/camel/camel-search-sql-sexp.c b/camel/camel-search-sql-sexp.c
index 356c78e..4007e48 100644
--- a/camel/camel-search-sql-sexp.c
+++ b/camel/camel-search-sql-sexp.c
@@ -715,7 +715,7 @@ camel_sexp_to_sql_sexp (const gchar *sql)
CamelSExp *sexp;
CamelSExpResult *r;
gint i;
- gchar *res;
+ gchar *res = NULL;
sexp = camel_sexp_new ();
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index ebdc1b4..966d952 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -1551,7 +1551,7 @@ camel_nntp_raw_commandv (CamelNNTPStore *store,
stream = CAMEL_STREAM (store->mem);
while ((c = *p++)) {
- gchar *strval;
+ gchar *strval = NULL;
switch (c) {
case '%':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]