1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 9CABB431FDA
\r
6 for <notmuch@notmuchmail.org>; Mon, 23 Feb 2015 09:04:24 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.738 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id i3emdSNfaFAr for <notmuch@notmuchmail.org>;
\r
17 Mon, 23 Feb 2015 09:04:21 -0800 (PST)
\r
18 Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com
\r
19 [209.85.212.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 9F7AB431FDE
\r
22 for <notmuch@notmuchmail.org>; Mon, 23 Feb 2015 09:04:19 -0800 (PST)
\r
23 Received: by mail-wi0-f174.google.com with SMTP id em10so19269948wid.1
\r
24 for <notmuch@notmuchmail.org>; Mon, 23 Feb 2015 08:56:01 -0800 (PST)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=1e100.net; s=20130820;
\r
27 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
29 bh=NfoYblGsrwJTNyCeMXzCR5zR/76lWqpRX7JchQeQGdo=;
\r
30 b=XI9ORpu0pyw2aGCRCy3zOJBrjCP4ZWfwRzWjd7QSXn4j3HM9C91syPmvI93ccE+LUo
\r
31 Caq+6yDYxr8Wla0IJI+guYoiiNjOsPXfAxMq61jd5/OkrSOPebnJD6p3UmvxUJyvh9YE
\r
32 s1vdYmGLdswupaL29MA+RCx1OcvEt3cquRs+OZcP3qVB1zzCKsIghS5LRGnwcJit4Vt3
\r
33 E0taPbVSdOO/wuXn2rkLTnHst1ENUeZXIHolI66SOnvZfU751vlpGQHif3MLTKiQRrDS
\r
34 2+KogB/7BOLOS6l4AmTsmMiLd8Rz0aLD7lI+UECKMrVvI7HC+RChAXCb/9YTzXmDI3G9
\r
37 ALoCoQms2NKDr08Uy0jDxSrUe/ruYedQZfU13lddSXjLUHj6yHuoHueGhhVc2Hhw7nW6WQjX4S8p
\r
38 X-Received: by 10.180.221.232 with SMTP id qh8mr17316382wic.19.1424710561739;
\r
39 Mon, 23 Feb 2015 08:56:01 -0800 (PST)
\r
40 Received: from localhost (mobile-internet-bcee3b-76.dhcp.inet.fi.
\r
41 [188.238.59.76]) by mx.google.com with ESMTPSA id
\r
42 qo10sm56355792wjc.38.2015.02.23.08.56.00
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Mon, 23 Feb 2015 08:56:01 -0800 (PST)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: notmuch@notmuchmail.org
\r
47 Subject: [PATCH 2/3] lib: fix clang build warnings
\r
48 Date: Mon, 23 Feb 2015 18:56:15 +0200
\r
49 Message-Id: <1424710576-30468-2-git-send-email-jani@nikula.org>
\r
50 X-Mailer: git-send-email 2.1.4
\r
51 In-Reply-To: <1424710576-30468-1-git-send-email-jani@nikula.org>
\r
52 References: <1424710576-30468-1-git-send-email-jani@nikula.org>
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\r
56 List-Id: "Use and development of the notmuch mail system."
\r
57 <notmuch.notmuchmail.org>
\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
61 List-Post: <mailto:notmuch@notmuchmail.org>
\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
65 X-List-Received-Date: Mon, 23 Feb 2015 17:04:24 -0000
\r
67 Fix the following warning produced by clang 3.5.0:
\r
69 lib/message.cc:899:4: warning: comparison of constant 64 with expression of type 'notmuch_message_flag_t' (aka '_notmuch_message_flag') is always true [-Wtautological-constant-out-of-range-compare]
\r
70 ! NOTMUCH_TEST_BIT (message->lazy_flags, flag))
\r
71 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\r
72 ./lib/notmuch-private.h:70:6: note: expanded from macro 'NOTMUCH_TEST_BIT'
\r
73 (_NOTMUCH_VALID_BIT(bit) ? !!((val) & (1ull << (bit))) : 0)
\r
74 ^~~~~~~~~~~~~~~~~~~~~~~
\r
75 ./lib/notmuch-private.h:68:26: note: expanded from macro '_NOTMUCH_VALID_BIT'
\r
76 ((bit) >= 0 && (bit) < CHAR_BIT * sizeof (unsigned long long))
\r
77 ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\r
79 lib/notmuch-private.h | 2 +-
\r
80 1 file changed, 1 insertion(+), 1 deletion(-)
\r
82 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
\r
83 index 02a8fc62b631..8a1f2fab77af 100644
\r
84 --- a/lib/notmuch-private.h
\r
85 +++ b/lib/notmuch-private.h
\r
86 @@ -65,7 +65,7 @@ NOTMUCH_BEGIN_DECLS
\r
88 /* Robust bit test/set/reset macros */
\r
89 #define _NOTMUCH_VALID_BIT(bit) \
\r
90 - ((bit) >= 0 && (bit) < CHAR_BIT * sizeof (unsigned long long))
\r
91 + ((bit) >= 0 && ((unsigned long) bit) < CHAR_BIT * sizeof (unsigned long long))
\r
92 #define NOTMUCH_TEST_BIT(val, bit) \
\r
93 (_NOTMUCH_VALID_BIT(bit) ? !!((val) & (1ull << (bit))) : 0)
\r
94 #define NOTMUCH_SET_BIT(valp, bit) \
\r