[evolution] Address some of the clang warnings



commit f9f2d723c984b15c4f534c024906cf465c5056f0
Author: Milan Crha <mcrha redhat com>
Date:   Mon May 14 18:19:22 2018 +0200

    Address some of the clang warnings

 src/em-format/e-mail-formatter-secure-button.c |    2 +-
 src/libemail-engine/em-vfolder-rule.c          |    2 +-
 src/modules/calendar/e-cal-shell-content.c     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/em-format/e-mail-formatter-secure-button.c b/src/em-format/e-mail-formatter-secure-button.c
index ceb8dce..11c3c57 100644
--- a/src/em-format/e-mail-formatter-secure-button.c
+++ b/src/em-format/e-mail-formatter-secure-button.c
@@ -100,7 +100,7 @@ e_mail_formatter_secure_button_get_sign_description (CamelCipherValiditySign sta
 const gchar *
 e_mail_formatter_secure_button_get_encrypt_description (CamelCipherValidityEncrypt status)
 {
-       g_return_val_if_fail (status >= 0 && status < G_N_ELEMENTS (smime_encrypt_table), NULL);
+       g_return_val_if_fail (status >= 0 && ((gint) status) < G_N_ELEMENTS (smime_encrypt_table), NULL);
 
        return _(smime_encrypt_table[status].description);
 }
diff --git a/src/libemail-engine/em-vfolder-rule.c b/src/libemail-engine/em-vfolder-rule.c
index 794e209..c0a14e2 100644
--- a/src/libemail-engine/em-vfolder-rule.c
+++ b/src/libemail-engine/em-vfolder-rule.c
@@ -357,7 +357,7 @@ xml_encode (EFilterRule *fr)
 
        node = E_FILTER_RULE_CLASS (em_vfolder_rule_parent_class)->xml_encode (fr);
        g_return_val_if_fail (node != NULL, NULL);
-       g_return_val_if_fail (vr->priv->with < G_N_ELEMENTS (with_names), NULL);
+       g_return_val_if_fail (((gint) vr->priv->with) < G_N_ELEMENTS (with_names), NULL);
 
        set = xmlNewNode (NULL, (const guchar *)"sources");
        xmlAddChild (node, set);
diff --git a/src/modules/calendar/e-cal-shell-content.c b/src/modules/calendar/e-cal-shell-content.c
index dd7d521..87ed166 100644
--- a/src/modules/calendar/e-cal-shell-content.c
+++ b/src/modules/calendar/e-cal-shell-content.c
@@ -378,7 +378,7 @@ cal_shell_content_change_selection_in_current_view (ECalShellContent *cal_shell_
 {
        g_return_if_fail (E_IS_CAL_SHELL_CONTENT (cal_shell_content));
 
-       if (cal_shell_content->priv->current_view >= 0 &&
+       if (cal_shell_content->priv->current_view >= E_CAL_VIEW_KIND_DAY &&
            cal_shell_content->priv->current_view < E_CAL_VIEW_KIND_LAST) {
                ECalendarView *view;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]