diff options
| author | Milan Crha <mcrha@redhat.com> | 2013-01-18 12:15:42 +0100 |
|---|---|---|
| committer | Milan Crha <mcrha@redhat.com> | 2013-01-18 12:16:48 +0100 |
| commit | 18e0cdff26753531cd90319c86b82e60350c7075 (patch) | |
| tree | d2b8de72fa261afa9bb6e08a8474078bedce7a37 /camel | |
| parent | 760ac4cc89b4db017de246a53c3edfa43cc13f0d (diff) | |
| download | evolution-data-server-18e0cdff26753531cd90319c86b82e60350c7075.tar.gz | |
Bug #691126 - Fix warnings found by Clang
Diffstat (limited to 'camel')
| -rw-r--r-- | camel/camel-imapx-server.c | 2 | ||||
| -rw-r--r-- | camel/camel-imapx-utils.c | 1 | ||||
| -rw-r--r-- | camel/camel-search-sql-sexp.c | 2 | ||||
| -rw-r--r-- | camel/providers/nntp/camel-nntp-store.c | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c index d414db4e6..75b73f61a 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 e3ed5703a..b5601bdb2 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 356c78ee0..4007e48f0 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 ebdc1b44d..966d9525c 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 '%': |
