www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/21/03:34:13

Date: Thu, 21 Jun 2001 10:35:39 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp-workers AT delorie DOT com
Subject: Re: Mysterious id in dbgcom.c
In-Reply-To: <3B30EF23.3036DEF0@phekda.freeserve.co.uk>
Message-ID: <Pine.SUN.3.91.1010621103516.7710H-100000@is>
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

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 -


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