[GRASS5] Status of 5.0.0 release
Michel Wurtz
mw at teledetection.fr
Tue Apr 10 03:14:31 EDT 2001
Markus Neteler wrote:
[...]
> On Mon, Apr 09, 2001 at 07:58:22PM +0100, Glynn Clements wrote:
> [...]
> > Do you want the qsort() warnings fixed? AFAICT, all of these arise
> > from comparison functions taking pointers to the actual object type,
> > but qsort() having a fixed prototype with a fixed 4th parameter.
> >
> > Fixing them is basically a choice of either:
> >
> > a) changing e.g.:
> >
> > int compare(foo *a, foo *b)
> > {
> > return CMP(*a, *b);
> > }
> > to
> > int compare(void *aa, void *bb)
> > {
> > foo *a = (foo*) aa;
> > foo *b = (foo*) bb;
> > return CMP(*a, *b);
> > }
> >
> > or:
> >
> > b) explicitly casting the 4th argument to qsort()
[...]
> this I would like to put into general discussion. Maybe we can silently
> ignore the qsort warnings (no problems in past)?
I like a compile process without warning... The b) solution seems easier,
and probably more understandable (even more with a comment line ;-),
but does it really suppress warnings ?
--
Michel WURTZ - DIG - Maison de la télédétection
500, rue J.F. Breton
34093 MONTPELLIER Cedex 5
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list