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 13:06:50 +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>
> -----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