[RFA] Fix compilation failure on cygwin due to ncurses macro.

Pierre Muller pierre.muller@ics-cnrs.unistra.fr
Wed Apr 14 16:30:00 GMT 2010


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



More information about the Gdb-patches mailing list