Mail Archives: djgpp-workers/2001/06/21/03:34:13
On Wed, 20 Jun 2001, Richard Dawe wrote:
> > > dbgcom.c:36: warning: `id' defined but not used
> > >
> > > What good is it? Some version control or something?
> >
> > Yes. See src/ident.c and src/makefile.lib
> >
> > You need the 'id' in that file to force the ident string (in id_dbg.o)
> > to get pulled in to every executable using that library.
>
> Perhaps you could put '__attribute__((unused))' on id's definition, to
> stop gcc from generating the warning?
I don't think this will work, but maybe it's worth to try.
If not, just throw in some dummy line, like "id = id;", to shut up the
compiler.
- Raw text -