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 09618431E62
\r
6 for <notmuch@notmuchmail.org>; Mon, 23 Feb 2015 09:04:26 -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 ZHfCUGRtcqcG for <notmuch@notmuchmail.org>;
\r
17 Mon, 23 Feb 2015 09:04:24 -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 60C02431FD9
\r
22 for <notmuch@notmuchmail.org>; Mon, 23 Feb 2015 09:04:21 -0800 (PST)
\r
23 Received: by mail-wi0-f174.google.com with SMTP id em10so19270315wid.1
\r
24 for <notmuch@notmuchmail.org>; Mon, 23 Feb 2015 08:56:04 -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=Z50C3M6oDYX1vbDKJxO5Sy4mPH9dAbDYP+hM1nR7USw=;
\r
30 b=BtaAf3Af49W1i1aC5qe5w7jMoSD7oA9ZuY2NynD6o7AIvYErPD2oXcceaZIwMZGirw
\r
31 SHNWo/7cwelM1vKfWIhryxPe/J+pkLz8EC4bK6X4B0y6Iq1PscEqJSIYGd+vqbOSVZyQ
\r
32 qQh6IjXK6mjLBJc7B4nxTS95dWtQWkBKglmFkBpRuYuCTyf4ypSZZS65owEW9Lr2jj1c
\r
33 5yjdpsaWf3qKvQimaxOOI/9p3or23Gr/FizhV3Ua32irtVeyQMkyI17g43ZwLh8DSpMt
\r
34 89cvLnYTztc26qHICA57hYhboQ9qphxT8WR47De0px+1buU7GHKUp3hnbc083iCrJWMW
\r
37 ALoCoQlmRUTrjo1ReHWAuxHSRGkArrofJOsXL9i137xqBppcTkgpanSphI+HbjBSj4vR/7D+UXye
\r
38 X-Received: by 10.181.8.225 with SMTP id dn1mr22893838wid.55.1424710563878;
\r
39 Mon, 23 Feb 2015 08:56:03 -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 e18sm56355079wjz.27.2015.02.23.08.56.02
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Mon, 23 Feb 2015 08:56:03 -0800 (PST)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: notmuch@notmuchmail.org
\r
47 Subject: [PATCH 3/3] cli: fix clang build warnings
\r
48 Date: Mon, 23 Feb 2015 18:56:16 +0200
\r
49 Message-Id: <1424710576-30468-3-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:26 -0000
\r
67 Fix the following warning produced by clang 3.5.0:
\r
69 notmuch-search.c:730:25: warning: initializing 'void *' with an
\r
70 expression of type 'const notmuch_opt_desc_t (*)[4]' discards
\r
71 qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
\r
72 { NOTMUCH_OPT_INHERIT, &common_options, NULL, 0, 0 },
\r
74 1 warning generated.
\r
78 I'm not really happy with this one. An alternative would be to drop
\r
79 const from common_options, but I'm not happy with that either. And I'm
\r
80 not happy with the warning. :(
\r
82 notmuch-search.c | 4 ++--
\r
83 1 file changed, 2 insertions(+), 2 deletions(-)
\r
85 diff --git a/notmuch-search.c b/notmuch-search.c
\r
86 index 14b9f01c5ad1..a591d45b4c39 100644
\r
87 --- a/notmuch-search.c
\r
88 +++ b/notmuch-search.c
\r
89 @@ -671,7 +671,7 @@ notmuch_search_command (notmuch_config_t *config, int argc, char *argv[])
\r
90 { NOTMUCH_OPT_INT, &ctx->offset, "offset", 'O', 0 },
\r
91 { NOTMUCH_OPT_INT, &ctx->limit, "limit", 'L', 0 },
\r
92 { NOTMUCH_OPT_INT, &ctx->dupe, "duplicate", 'D', 0 },
\r
93 - { NOTMUCH_OPT_INHERIT, &common_options, NULL, 0, 0 },
\r
94 + { NOTMUCH_OPT_INHERIT, (void *) &common_options, NULL, 0, 0 },
\r
98 @@ -727,7 +727,7 @@ notmuch_address_command (notmuch_config_t *config, int argc, char *argv[])
\r
99 (notmuch_keyword_t []){ { "true", NOTMUCH_EXCLUDE_TRUE },
\r
100 { "false", NOTMUCH_EXCLUDE_FALSE },
\r
102 - { NOTMUCH_OPT_INHERIT, &common_options, NULL, 0, 0 },
\r
103 + { NOTMUCH_OPT_INHERIT, (void *) &common_options, NULL, 0, 0 },
\r