Mail Archives: djgpp-workers/2003/04/18/00:35:03
> 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 -