1 Return-Path: <five9a2@gmail.com>
\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 EAFA1431FBC
\r
6 for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:38:13 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id IX4hPSHqf4e7 for <notmuch@notmuchmail.org>;
\r
11 Mon, 23 Nov 2009 08:38:13 -0800 (PST)
\r
12 Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com
\r
14 by olra.theworths.org (Postfix) with ESMTP id DFCEE431FAE
\r
15 for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:38:12 -0800 (PST)
\r
16 Received: by bwz2 with SMTP id 2so5423356bwz.0
\r
17 for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:38:11 -0800 (PST)
\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
19 h=domainkey-signature:received:received:sender:from:to:cc:subject
\r
20 :in-reply-to:references:date:message-id:mime-version:content-type;
\r
21 bh=FXeE7CZm+UTeuS7f2Xr5DoBGPii4HTRC7UzEGOXYdls=;
\r
22 b=IjRfNRMUx6rMkiMZm1orV4kUn/seFyZLSjtz7/7RCtaRKRV2mASJYwuuhPg8NgLSkH
\r
23 9nlpac00qGxx24eDCxFXdmuovvR/OYv1mr07hvf9kIFkUhFVLFAWT0Ug8Oct9NR1NVCF
\r
24 6hFJxNknhUZ5npqMILzBEfdOmzFy5n3F6esoQ=
\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
26 h=sender:from:to:cc:subject:in-reply-to:references:date:message-id
\r
27 :mime-version:content-type;
\r
28 b=VaeAlQFCxG+1ss8h7b7uYbCwkYzDVrVo/JZmq5X9MyRQTWcPvfAA+KMIeUIe6NjTsH
\r
29 oLdc9A79sA7HEZjuWZCiZpfLQfMdy8BnmqyCkWfeeOiEU0gDvTF5QuVt5SZRDbK/GhwY
\r
30 Tns5YAc13ghEzIkieF4SEY2LLysnUNvIm7iRA=
\r
31 Received: by 10.204.152.151 with SMTP id g23mr582265bkw.148.1258994291779;
\r
32 Mon, 23 Nov 2009 08:38:11 -0800 (PST)
\r
33 Received: from kunyang (vawpc43.ethz.ch [129.132.59.11])
\r
34 by mx.google.com with ESMTPS id 22sm5937992fkr.27.2009.11.23.08.38.10
\r
35 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
36 Mon, 23 Nov 2009 08:38:10 -0800 (PST)
\r
37 Sender: Jed Brown <five9a2@gmail.com>
\r
38 From: Jed Brown <jed@59A2.org>
\r
39 To: Dirk-Jan Binnema <djcb.bulk@gmail.com>, Jed Brown <jed@59a2.org>
\r
40 In-Reply-To: <1873022c0911230814y783f14ffn23f12d13c73e5acc@mail.gmail.com>
\r
41 References: <87skc5yd6v.wl%djcb@djcbsoftware.nl>
\r
42 <b8197bcb0911222334v26e96890t3632369ff32ff80f@mail.gmail.com>
\r
43 <1873022c0911230311o77e55fdqa5464a2dd16ec265@mail.gmail.com>
\r
44 <b8197bcb0911230519l4edf1b72w26d993834f25a417@mail.gmail.com>
\r
45 <87ws1h48up.fsf@59A2.org>
\r
46 <1873022c0911230814y783f14ffn23f12d13c73e5acc@mail.gmail.com>
\r
47 Date: Mon, 23 Nov 2009 17:38:42 +0100
\r
48 Message-ID: <87skc542nh.fsf@59A2.org>
\r
50 Content-Type: text/plain; charset=us-ascii
\r
51 Cc: "notmuch@notmuchmail org" <notmuch@notmuchmail.org>, djcb@djcbsoftware.nl
\r
52 Subject: Re: [notmuch] [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due
\r
53 to ignored write return values
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.12
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Mon, 23 Nov 2009 16:38:14 -0000
\r
68 On Mon, 23 Nov 2009 18:14:12 +0200, Dirk-Jan Binnema <djcb.bulk@gmail.com> wrote:
\r
69 > Did you try it with -O2? Without optimizations many of the warnings are not
\r
83 $ gcc -static -std=c89 -O0 -Wall -Wextra -pedantic -o foo foo.c
\r
84 $ objdump -d -M intel foo |grep -A12 '<main>'
\r
85 00000000004002a4 <main>:
\r
87 4002a5: 48 89 e5 mov rbp,rsp
\r
88 4002a8: bf 05 00 00 00 mov edi,0x5
\r
89 4002ad: e8 6e 61 00 00 call 406420 <__libc_malloc>
\r
90 4002b2: ba 0a 00 00 00 mov edx,0xa
\r
91 4002b7: be 00 00 00 00 mov esi,0x0
\r
92 4002bc: bf 02 00 00 00 mov edi,0x2
\r
93 4002c1: e8 ea a0 00 00 call 40a3b0 <__libc_write>
\r
94 4002c6: b8 00 00 00 00 mov eax,0x0
\r
99 Using built-in specs.
\r
100 Target: x86_64-unknown-linux-gnu
\r
101 Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
\r
102 Thread model: posix
\r
103 gcc version 4.4.2 (GCC)
\r
105 Linux kunyang 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:01:40 CET 2009 x86_64 Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz GenuineIntel GNU/Linux
\r