This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFA] Fix compilation failure on cygwin due to ncurses macro.
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Joel Brobecker'" <brobecker at adacore dot com>
- Cc: "'Pedro Alves'" <pedro at codesourcery dot com>, <gdb-patches at sourceware dot org>
- Date: Wed, 14 Apr 2010 18:29:19 +0200
- Subject: RE: [RFA] Fix compilation failure on cygwin due to ncurses macro.
- 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>
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. */
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...
Pierre
> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Joel Brobecker
> Envoyé?: Wednesday, April 14, 2010 6:00 PM
> À?: Pierre Muller
> Cc?: 'Pedro Alves'; gdb-patches@sourceware.org
> Objet?: Re: [RFA] Fix compilation failure on cygwin due to ncurses
> macro.
>
> > > /* 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!
>
> Oh... Can you make an amendment?
>
> --
> Joel