From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32387 invoked by alias); 14 Apr 2010 16:30:05 -0000 Received: (qmail 32275 invoked by uid 22791); 14 Apr 2010 16:29:59 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.155) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Apr 2010 16:29:48 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o3EGTI6x036504 ; Wed, 14 Apr 2010 18:29:18 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms2.u-strasbg.fr [IPv6:2001:660:2402:d::11]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o3EGTIlR055409 ; Wed, 14 Apr 2010 18:29:18 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o3EGTILm058705 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Wed, 14 Apr 2010 18:29:18 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Joel Brobecker'" Cc: "'Pedro Alves'" , References: <003001cadae7$2e639860$8b2ac920$@muller@ics-cnrs.unistra.fr> <201004131237.53420.pedro@codesourcery.com> <004201cadb02$b4a525e0$1def71a0$@muller@ics-cnrs.unistra.fr> <20100413150707.GE19194@adacore.com> <004e01cadb1c$5ea1cdf0$1be569d0$@muller@ics-cnrs.unistra.fr> <20100413152609.GF19194@adacore.com> <002101cadbc2$95cb7dc0$c1627940$@muller@ics-cnrs.unistra.fr> <20100414155944.GK19194@adacore.com> In-Reply-To: <20100414155944.GK19194@adacore.com> Subject: RE: [RFA] Fix compilation failure on cygwin due to ncurses macro. Date: Wed, 14 Apr 2010 16:30:00 -0000 Message-ID: <000001cadbef$a21bad70$e6530850$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00449.txt.bz2 What about this: /* We need to cast the return value of wstandout to void because in patches to release "5.7" of ncurses dated after 2009/05/16, the wstandout macro expands to code that generates a unused-value warning at compilation. */ =20=20 At least, this is what I understood from the patched ncurses NEWS: 20090516 + work around antique BSD game's manipulation of stdscr, etc., versus SCREEN's copy of the pointer (Debian #528411). + add a cast to wattrset macro to avoid compiler warning when comparing its result against ERR (adapted from patch by Matt Kraii, Debian #528374). But I couldn't get the patch itself... =20=20 Pierre > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Joel Brobecker > Envoy=E9=A0: Wednesday, April 14, 2010 6:00 PM > =C0=A0: Pierre Muller > Cc=A0: 'Pedro Alves'; gdb-patches@sourceware.org > Objet=A0: Re: [RFA] Fix compilation failure on cygwin due to ncurses > macro. >=20 > > > /* We need to cast the return value of wstandout to void because > > > older versions of the ncurses implementation (for instance, > > > the version used with cygwin 1.5) expand to some code leading > > > to an unused-value warning from the compiler. */ > > > > Joel, the file I was referring to was generated from > > `ncurses-5.7/include/ncurses.h.in' > > which is the last official release of ncurses according to > > GNU web site, so 'older versions" seems a bit early to me! >=20 > Oh... Can you make an amendment? >=20 > -- > Joel