delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/18/06:55:46

Message-ID: <20030418105543.65610.qmail@web41006.mail.yahoo.com>
Date: Fri, 18 Apr 2003 03:55:43 -0700 (PDT)
From: Daniel Borca <dborca AT yahoo DOT com>
Subject: Re: dxe review
To: Andrew Cottrell <acottrel AT ihug DOT com DOT au>,
Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Cc: djgpp-workers AT delorie DOT com
In-Reply-To: <002701c30596$155c7540$0100a8c0@acp42g>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--- 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019