From: Brendan Cully Date: Sat, 25 Jun 2011 22:23:05 +0000 (-0700) Subject: Silence some eclipse warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de98f40cc665aaca6f6f9a25d47f4ddcb5fbf95a;p=neomutt Silence some eclipse warnings --- diff --git a/compose.c b/compose.c index 21a296c9d..3b7cb1730 100644 --- a/compose.c +++ b/compose.c @@ -146,11 +146,11 @@ static void redraw_crypt_lines (HEADER *msg) clrtoeol (); if ((WithCrypto & APPLICATION_PGP) - && msg->security & APPLICATION_PGP && msg->security & SIGN) + && (msg->security & APPLICATION_PGP) && (msg->security & SIGN)) printw ("%s%s", _(" sign as: "), PgpSignAs ? PgpSignAs : _("")); if ((WithCrypto & APPLICATION_SMIME) - && msg->security & APPLICATION_SMIME && msg->security & SIGN) { + && (msg->security & APPLICATION_SMIME) && (msg->security & SIGN)) { printw ("%s%s", _(" sign as: "), SmimeDefaultKey ? SmimeDefaultKey : _("")); } @@ -1213,7 +1213,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ if (!(WithCrypto & APPLICATION_PGP)) break; if ((WithCrypto & APPLICATION_SMIME) - && msg->security & APPLICATION_SMIME) + && (msg->security & APPLICATION_SMIME)) { if (mutt_yesorno (_("S/MIME already selected. Clear & continue ? "), M_YES) != M_YES) @@ -1239,7 +1239,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ break; if ((WithCrypto & APPLICATION_PGP) - && msg->security & APPLICATION_PGP) + && (msg->security & APPLICATION_PGP)) { if (mutt_yesorno (_("PGP already selected. Clear & continue ? "), M_YES) != M_YES) diff --git a/muttlib.c b/muttlib.c index 2d01599d6..f93fccd57 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1072,7 +1072,7 @@ void mutt_FormatString (char *dest, /* output buffer */ prefix[0] = '\0'; destlen--; /* save room for the terminal \0 */ - wlen = (flags & M_FORMAT_ARROWCURSOR && option (OPTARROWCURSOR)) ? 3 : 0; + wlen = ((flags & M_FORMAT_ARROWCURSOR) && option (OPTARROWCURSOR)) ? 3 : 0; col += wlen; if ((flags & M_FORMAT_NOFILTER) == 0) @@ -1142,7 +1142,7 @@ void mutt_FormatString (char *dest, /* output buffer */ col -= wlen; /* reset to passed in value */ wptr = dest; /* reset write ptr */ - wlen = (flags & M_FORMAT_ARROWCURSOR && option (OPTARROWCURSOR)) ? 3 : 0; + wlen = ((flags & M_FORMAT_ARROWCURSOR) && option (OPTARROWCURSOR)) ? 3 : 0; if ((pid = mutt_create_filter(command->data, NULL, &filter, NULL)) != -1) { int rc; @@ -1312,7 +1312,7 @@ void mutt_FormatString (char *dest, /* output buffer */ } else if (soft && pad < 0) { - int offset = (flags & M_FORMAT_ARROWCURSOR && option (OPTARROWCURSOR)) ? 3 : 0; + int offset = ((flags & M_FORMAT_ARROWCURSOR) && option (OPTARROWCURSOR)) ? 3 : 0; /* \0-terminate dest for length computation in mutt_wstr_trunc() */ *wptr = 0; /* make sure right part is at most as wide as display */