Message-ID: <20030418105543.65610.qmail@web41006.mail.yahoo.com> Date: Fri, 18 Apr 2003 03:55:43 -0700 (PDT) From: Daniel Borca Subject: Re: dxe review To: Andrew Cottrell , Charles Sandmann Cc: djgpp-workers AT delorie DOT com In-Reply-To: <002701c30596$155c7540$0100a8c0@acp42g> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Precedence: bulk --- Andrew Cottrell 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