1 Return-Path: <geocar-notmuch@internetconnection.net>
\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 45DFB431FBC
\r
6 for <notmuch@notmuchmail.org>; Thu, 21 Jan 2010 12:31:46 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.246 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.247, BAYES_50=0.001] autolearn=ham
\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 oOnZSxdr2+Po for <notmuch@notmuchmail.org>;
\r
16 Thu, 21 Jan 2010 12:31:45 -0800 (PST)
\r
17 Received: from proxy.dmvnoc.com (proxy.dmvnoc.com [216.169.144.254])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 4C4A0431FAE
\r
19 for <notmuch@notmuchmail.org>; Thu, 21 Jan 2010 12:31:45 -0800 (PST)
\r
20 Received: (qmail 11593 invoked from network); 21 Jan 2010 20:31:40 +0000
\r
21 Received: from unknown (HELO ?192.168.1.19?) (192.168.1.19)
\r
22 by mail.internetconnection.net with SMTP; 21 Jan 2010 20:31:40 +0000
\r
23 From: Geo Carncross <geocar-notmuch@internetconnection.net>
\r
24 To: notmuch@notmuchmail.org
\r
25 Content-Type: multipart/mixed; boundary="=-LLZRzZQRpdqt/RmcKXoQ"
\r
26 Date: Thu, 21 Jan 2010 15:31:44 -0500
\r
27 Message-ID: <1264105904.3941.121.camel@dwarf>
\r
29 X-Mailer: Evolution 2.28.1
\r
30 Subject: [notmuch] [PATCH] GCC3.5 fix
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.13
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Thu, 21 Jan 2010 20:31:46 -0000
\r
46 --=-LLZRzZQRpdqt/RmcKXoQ
\r
47 Content-Type: text/plain; charset="UTF-8"
\r
48 Content-Transfer-Encoding: 7bit
\r
50 I have reason to need GCC 3.5 which doesn't process the unused(x) macro
\r
51 correctly. This is probably a bug in 3.5, nevertheless the patch is
\r
52 simple and corrects the build.
\r
54 GCC 3.5 also does not understand -Wextra but Makefile is bound to change
\r
55 less frequently, so I did not include a patch for that.
\r
58 --=-LLZRzZQRpdqt/RmcKXoQ
\r
59 Content-Disposition: attachment; filename="notmuch_gcc_35.patch"
\r
60 Content-Type: text/x-patch; name="notmuch_gcc_35.patch"; charset="UTF-8"
\r
61 Content-Transfer-Encoding: 7bit
\r
63 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
\r
64 index c7fb0ef..ad6dcd8 100644
\r
65 --- a/lib/notmuch-private.h
\r
66 +++ b/lib/notmuch-private.h
\r
67 @@ -74,7 +74,7 @@ _internal_error (const char *format, ...) PRINTF_ATTRIBUTE (1, 2);
\r
68 _internal_error (format " (%s).\n", \
\r
69 ##__VA_ARGS__, __location__)
\r
71 -#define unused(x) x __attribute__ ((unused))
\r
72 +#define unused(x) x __attribute__((unused))
\r
74 /* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of
\r
75 * unlikely. The talloc source code comes to us via the GNU LGPL v. 3.
\r
76 diff --git a/notmuch-client.h b/notmuch-client.h
\r
77 index 77766de..87e599a 100644
\r
78 --- a/notmuch-client.h
\r
79 +++ b/notmuch-client.h
\r
84 -#define unused(x) x __attribute__ ((unused))
\r
85 +#define unused(x) x __attribute__((unused))
\r
87 /* There's no point in continuing when we've detected that we've done
\r
88 * something wrong internally (as opposed to the user passing in a
\r
90 --=-LLZRzZQRpdqt/RmcKXoQ--
\r