delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/18/00:35:03

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10304180435.AA20388@clio.rice.edu>
Subject: Re: dxe review
To: djgpp-workers AT delorie DOT com
Date: Thu, 17 Apr 2003 23:35:47 -0500 (CDT)
Cc: dborca AT yahoo DOT com
In-Reply-To: <000d01c3055a$8e2ac8f0$0100a8c0@acp42g> from "Andrew Cottrell" at Apr 18, 2003 01:28:17 PM
X-Mailer: ELM [version 2.5 PL2]
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

> dxe3stat.c:48: warning: no previous prototype for `dlstatbind'
> dxe3stat.c:73: warning: no previous prototype for `dlstatunbind'

Ooops, I forgot to add the most recent dxe.h to the zip file.  It's
in my CVS area so I don't see the problems, and when I restored zip
file it was newer...  Fixed in new zip.  Still haven't had time to
finish last info file...

> gcc ... -c dxe3res.c
> cc1.exe: warnings being treated as errors
> dxe3res.c: In function `cmp':
> dxe3res.c:116: warning: cast discards qualifiers from pointer target type
> dxe3res.c:116: warning: cast discards qualifiers from pointer target type
> make.exe[1]: *** [dxe3res.o] Error 1
> make.exe: *** [subs] Error 2

Okay, I don't see this - so it must be new bitchyness with GCC 3.x 
versus 2.9

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?

- Raw text -


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