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 C46BC431FBC for ; Mon, 23 Nov 2009 03:11:57 -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 ktd1Dh6Q4-D5 for ; Mon, 23 Nov 2009 03:11:57 -0800 (PST) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by olra.theworths.org (Postfix) with ESMTP id 026D1431FAE for ; Mon, 23 Nov 2009 03:11:56 -0800 (PST) Received: by fg-out-1718.google.com with SMTP id 19so2017038fgg.2 for ; Mon, 23 Nov 2009 03:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=zkh9rYN7E5CoNQXe02gbcaYSPgYWs6F/GNINri7hXy4=; b=vTCrtfQqDYLsPbdjJ8pZBmseZzhG9aFLqcj7yku0XXI6g9jXw/ZIROMl83pwHMFn5z 4Zb5JsRdQuUNe7epoedvqYqGEygVPe3hVvRWSbdRS6vybykMkDQFaBB6onoEa6oVZilC tGPNUzH3UcxiH5VBPC50gHCVwmGreVV4JMdiE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lKKJowZDztoqPqGn7jJOV0M3AL3BQSIG/yXiFmQ2dw+YRwpaLBKognyCyD7gtoBGLz Poqixs/bjTBnek+F5CBy1Qu72k5WSdEuyDA29H5Iq1DNcWAhY97Pe13moe7omfQB63s2 Irz+8fjrvCNj5vgtxyDk4n8/kPMtF/rXduRec= MIME-Version: 1.0 Received: by 10.86.11.6 with SMTP id 6mr3928256fgk.27.1258974715317; Mon, 23 Nov 2009 03:11:55 -0800 (PST) In-Reply-To: References: <87skc5yd6v.wl%djcb@djcbsoftware.nl> Date: Mon, 23 Nov 2009 13:11:55 +0200 Message-ID: <1873022c0911230311o77e55fdqa5464a2dd16ec265@mail.gmail.com> From: Dirk-Jan Binnema To: Karl Wiberg Content-Type: multipart/alternative; boundary=0014852e1b28b00e75047907e469 Cc: "notmuch@notmuchmail org" , djcb@djcbsoftware.nl 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 11:11:57 -0000 --0014852e1b28b00e75047907e469 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Nov 23, 2009 at 9:34 AM, Karl Wiberg wrote: > On Mon, Nov 23, 2009 at 7:20 AM, Dirk-Jan C. Binnema > wrote: > > > + ssize_t ignored; > > static char msg[] = "Stopping... \n"; > > - write(2, msg, sizeof(msg)-1); > > + > > + ignored = write(2, msg, sizeof(msg)-1); > > interrupted = 1; > > } > > Didn't the "(void)" suggestion work? > > I actually preferred that solution, but unfortunately, it didn't stop gcc from complaining... Best wishes, Dirk. --0014852e1b28b00e75047907e469 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Mon, Nov 23, 2009 at 9:34 AM, Karl Wi= berg <kha@treskal.c= om> wrote:
On Mon, Nov 23, 2009 at 7:20 AM, Dirk-Jan C. Binnema
<djcb.bulk@gmail.com> wrot= e:

> + =A0 =A0ssize_t ignored;
> =A0 =A0 static char msg[] =3D "Stopping... =A0 =A0 =A0 =A0 \n&quo= t;;
> - =A0 =A0write(2, msg, sizeof(msg)-1);
> +
> + =A0 =A0ignored =3D write(2, msg, sizeof(msg)-1);
> =A0 =A0 interrupted =3D 1;
> =A0}

Didn't the "(void)" suggestion work?


I actually prefer= red that solution, but unfortunately, it didn't stop gcc from complaini= ng...

Best wishes,
Dirk.
--0014852e1b28b00e75047907e469--