This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Joel Brobecker
> Envoyé?: Tuesday, April 13, 2010 5:26 PM
> À?: Pierre Muller
> Cc?: 'Pedro Alves'; gdb-patches@sourceware.org
> Objet?: Re: [RFA] Fix compilation failure on cygwin due to ncurses
> macro.
> 
> > Would this change be OK?
> > Any better description is equally OK for me...
> 
> How about the following? Please replace "unused-value" by what the
> compiler actually complained about...
> 
>   /* 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!
  In fact it is even worse than this:
the Cygwin distributed version is a patched version
from 2009/11/14 available at ftp://invisible-island.net/ncurses/5.7/
which means that it will probably be included in the next distribution.

Pierre  



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]