--- /dev/null
+Return-Path: <five9a2@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id EAFA1431FBC\r
+ for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:38:13 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id IX4hPSHqf4e7 for <notmuch@notmuchmail.org>;\r
+ Mon, 23 Nov 2009 08:38:13 -0800 (PST)\r
+Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com\r
+ [209.85.218.210])\r
+ by olra.theworths.org (Postfix) with ESMTP id DFCEE431FAE\r
+ for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:38:12 -0800 (PST)\r
+Received: by bwz2 with SMTP id 2so5423356bwz.0\r
+ for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 08:38:11 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+ h=domainkey-signature:received:received:sender:from:to:cc:subject\r
+ :in-reply-to:references:date:message-id:mime-version:content-type;\r
+ bh=FXeE7CZm+UTeuS7f2Xr5DoBGPii4HTRC7UzEGOXYdls=;\r
+ b=IjRfNRMUx6rMkiMZm1orV4kUn/seFyZLSjtz7/7RCtaRKRV2mASJYwuuhPg8NgLSkH\r
+ 9nlpac00qGxx24eDCxFXdmuovvR/OYv1mr07hvf9kIFkUhFVLFAWT0Ug8Oct9NR1NVCF\r
+ 6hFJxNknhUZ5npqMILzBEfdOmzFy5n3F6esoQ=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+ h=sender:from:to:cc:subject:in-reply-to:references:date:message-id\r
+ :mime-version:content-type;\r
+ b=VaeAlQFCxG+1ss8h7b7uYbCwkYzDVrVo/JZmq5X9MyRQTWcPvfAA+KMIeUIe6NjTsH\r
+ oLdc9A79sA7HEZjuWZCiZpfLQfMdy8BnmqyCkWfeeOiEU0gDvTF5QuVt5SZRDbK/GhwY\r
+ Tns5YAc13ghEzIkieF4SEY2LLysnUNvIm7iRA=\r
+Received: by 10.204.152.151 with SMTP id g23mr582265bkw.148.1258994291779;\r
+ Mon, 23 Nov 2009 08:38:11 -0800 (PST)\r
+Received: from kunyang (vawpc43.ethz.ch [129.132.59.11])\r
+ by mx.google.com with ESMTPS id 22sm5937992fkr.27.2009.11.23.08.38.10\r
+ (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+ Mon, 23 Nov 2009 08:38:10 -0800 (PST)\r
+Sender: Jed Brown <five9a2@gmail.com>\r
+From: Jed Brown <jed@59A2.org>\r
+To: Dirk-Jan Binnema <djcb.bulk@gmail.com>, Jed Brown <jed@59a2.org>\r
+In-Reply-To: <1873022c0911230814y783f14ffn23f12d13c73e5acc@mail.gmail.com>\r
+References: <87skc5yd6v.wl%djcb@djcbsoftware.nl>\r
+ <b8197bcb0911222334v26e96890t3632369ff32ff80f@mail.gmail.com>\r
+ <1873022c0911230311o77e55fdqa5464a2dd16ec265@mail.gmail.com>\r
+ <b8197bcb0911230519l4edf1b72w26d993834f25a417@mail.gmail.com>\r
+ <87ws1h48up.fsf@59A2.org>\r
+ <1873022c0911230814y783f14ffn23f12d13c73e5acc@mail.gmail.com>\r
+Date: Mon, 23 Nov 2009 17:38:42 +0100\r
+Message-ID: <87skc542nh.fsf@59A2.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: "notmuch@notmuchmail org" <notmuch@notmuchmail.org>, djcb@djcbsoftware.nl\r
+Subject: Re: [notmuch] [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due\r
+ to ignored write return values\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 23 Nov 2009 16:38:14 -0000\r
+\r
+On Mon, 23 Nov 2009 18:14:12 +0200, Dirk-Jan Binnema <djcb.bulk@gmail.com> wrote:\r
+> Did you try it with -O2? Without optimizations many of the warnings are not\r
+> issued.\r
+\r
+Yes,\r
+\r
+$ cat > foo.c\r
+#include <stdlib.h>\r
+#include <unistd.h>\r
+int main()\r
+{\r
+ malloc(5);\r
+ write(2,0,10);\r
+ return 0;\r
+}\r
+$ gcc -static -std=c89 -O0 -Wall -Wextra -pedantic -o foo foo.c\r
+$ objdump -d -M intel foo |grep -A12 '<main>'\r
+00000000004002a4 <main>:\r
+ 4002a4: 55 push rbp\r
+ 4002a5: 48 89 e5 mov rbp,rsp\r
+ 4002a8: bf 05 00 00 00 mov edi,0x5\r
+ 4002ad: e8 6e 61 00 00 call 406420 <__libc_malloc>\r
+ 4002b2: ba 0a 00 00 00 mov edx,0xa\r
+ 4002b7: be 00 00 00 00 mov esi,0x0\r
+ 4002bc: bf 02 00 00 00 mov edi,0x2\r
+ 4002c1: e8 ea a0 00 00 call 40a3b0 <__libc_write>\r
+ 4002c6: b8 00 00 00 00 mov eax,0x0\r
+ 4002cb: c9 leave \r
+ 4002cc: c3 ret \r
+ 4002cd: 90 nop\r
+$ gcc -v\r
+Using built-in specs.\r
+Target: x86_64-unknown-linux-gnu\r
+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
+Thread model: posix\r
+gcc version 4.4.2 (GCC)\r
+$ uname -a\r
+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
+\r
+\r
+Seems fishy.\r
+\r
+Jed\r