Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 49B3D431FBC for ; Sun, 22 Nov 2009 23:34:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QciG+MgdMc2D for ; Sun, 22 Nov 2009 23:34:35 -0800 (PST) Received: from mail1.space2u.com (mail1.space2u.com [62.20.1.135]) by olra.theworths.org (Postfix) with ESMTP id 3729C431FAE for ; Sun, 22 Nov 2009 23:34:35 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) (authenticated bits=0) by mail1.space2u.com (8.14.3/8.14.3) with ESMTP id nAN7YQFQ008858 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NOT) for ; Mon, 23 Nov 2009 08:34:26 +0100 Received: by bwz24 with SMTP id 24so3673843bwz.30 for ; Sun, 22 Nov 2009 23:34:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.48.144 with SMTP id r16mr1779102bkf.170.1258961672465; Sun, 22 Nov 2009 23:34:32 -0800 (PST) In-Reply-To: <87skc5yd6v.wl%djcb@djcbsoftware.nl> References: <87skc5yd6v.wl%djcb@djcbsoftware.nl> Date: Mon, 23 Nov 2009 08:34:32 +0100 Message-ID: From: Karl Wiberg To: djcb@djcbsoftware.nl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "notmuch@notmuchmail org" Subject: Re: [notmuch] [PATCH 1/2] * avoid gcc 4.4.1 compiler warnings due to ignored write return values X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 07:34:36 -0000 On Mon, Nov 23, 2009 at 7:20 AM, Dirk-Jan C. Binnema wrote: > + =C2=A0 =C2=A0ssize_t ignored; > =C2=A0 =C2=A0 static char msg[] =3D "Stopping... =C2=A0 =C2=A0 =C2=A0 =C2= =A0 \n"; > - =C2=A0 =C2=A0write(2, msg, sizeof(msg)-1); > + > + =C2=A0 =C2=A0ignored =3D write(2, msg, sizeof(msg)-1); > =C2=A0 =C2=A0 interrupted =3D 1; > =C2=A0} Didn't the "(void)" suggestion work? --=20 Karl Wiberg, kha@treskal.com subrabbit.wordpress.com www.treskal.com/kalle