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 6FF4B431FBC
\r
6 for <notmuch@notmuchmail.org>; Fri, 17 Jan 2014 08:21:15 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id PX+kUzqR4IcJ for <notmuch@notmuchmail.org>;
\r
16 Fri, 17 Jan 2014 08:21:09 -0800 (PST)
\r
17 Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com
\r
18 [74.125.83.50]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 BA033431FB6 for <notmuch@notmuchmail.org>; Fri, 17 Jan 2014 08:21:08 -0800
\r
22 Received: by mail-ee0-f50.google.com with SMTP id d17so2204775eek.37
\r
23 for <notmuch@notmuchmail.org>; Fri, 17 Jan 2014 08:21:07 -0800 (PST)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:from:to:cc:subject:date:message-id;
\r
27 bh=qg6eYdNMaJR+3/6JErpKwi1+X56xhm2zNwOf9XbG0Kk=;
\r
28 b=VHxhz5PEpN/fIHtahcBd5Lg+t0FBMsTxrOctjW2Hyo9wP7yMgJrjIt8rduOuafz+1S
\r
29 SCqvavgx+StIRFu4gcHbZoijnJi3GkBDoWoV9zDNbQ73kHRRXcWCYrpyL/C7Rrn1eimZ
\r
30 hbUo8GfNW1+sD6Bf8y14JaMxWmZ9zK4ykCUMaJjMNOu46f4ppyGq+59HqZtVN0aZVq4n
\r
31 p5t0VsamHqse0dSlO6cXJBQ0rp1p3gUT4mpae+MGIJ80tp+VxkpdlNcvX/fbQWsXeGbr
\r
32 95A4T4uB0VdZoShauPgr1nT2MRH8o9REPWQk9Jzs3Txvy1RtC/jwyGmoveZK+0/TmSB/
\r
35 ALoCoQnQZD8aUmFBLQPhka0YBh1SmrZ4lqnew2gvwfSIl0+hpjwukvbXK18rGiqIxziQciHI/UjD
\r
36 X-Received: by 10.15.26.6 with SMTP id m6mr3555799eeu.80.1389975667683;
\r
37 Fri, 17 Jan 2014 08:21:07 -0800 (PST)
\r
38 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.
\r
40 by mx.google.com with ESMTPSA id v7sm28087011eel.2.2014.01.17.08.21.06
\r
41 for <multiple recipients>
\r
42 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
43 Fri, 17 Jan 2014 08:21:06 -0800 (PST)
\r
44 From: Jani Nikula <jani@nikula.org>
\r
45 To: notmuch@notmuchmail.org
\r
46 Subject: [PATCH] lib: fix clang compiler warning
\r
47 Date: Fri, 17 Jan 2014 18:21:05 +0200
\r
48 Message-Id: <1389975665-13962-1-git-send-email-jani@nikula.org>
\r
49 X-Mailer: git-send-email 1.8.5.2
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\r
53 List-Id: "Use and development of the notmuch mail system."
\r
54 <notmuch.notmuchmail.org>
\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
58 List-Post: <mailto:notmuch@notmuchmail.org>
\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
62 X-List-Received-Date: Fri, 17 Jan 2014 16:21:15 -0000
\r
64 With some combination of clang and talloc, not using the return value
\r
65 of talloc_steal() produces a warning. Ignore it, as talloc_steal() has
\r
66 no failure modes per documentation.
\r
68 lib/thread.cc | 2 +-
\r
69 1 file changed, 1 insertion(+), 1 deletion(-)
\r
71 diff --git a/lib/thread.cc b/lib/thread.cc
\r
72 index 4dcf705..8f53e12 100644
\r
75 @@ -524,7 +524,7 @@ _notmuch_thread_create (void *ctx,
\r
76 _resolve_thread_relationships (thread);
\r
78 /* Commit to returning thread. */
\r
79 - talloc_steal (ctx, thread);
\r
80 + (void) talloc_steal (ctx, thread);
\r
83 talloc_free (local);
\r