Mail Archives: djgpp-workers/2003/04/18/06:55:46
--- Andrew Cottrell <acottrel AT ihug DOT com DOT au> wrote:
[snip]
> > > gcc ... -c dxe3res.c
> ...
> > > cc1.exe: warnings being treated as errors
> ...
>
> > In particular, it doesn't like:
> >
> > static int cmp (const void *e1, const void *e2)
> > {
> > return strcmp(*(const char **)e1, *(const char
> **)e2);
> > }
> >
> > Any suggestions on how to juggle consts or
> whatever to make it happy?
>
> This seems so obvious, but what have I missed :-
> return strcmp((const char *)e1, (const char *)e2);
Yes, I cannot remember why it slipped me away. I mean,
why I used that sort of indirection... Not home now.
Can't do tests until tonight.
> Tomorrow I will play with the tests and see what I
> can do to some of the
> packages that use the libiconv like grep 2.5.1
Great!
=====
Regards,
Borca Daniel
http://www.geocities.com/dborca/
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
- Raw text -