delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/20/14:45:35

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3B30EF23.3036DEF0@phekda.freeserve.co.uk>
Date: Wed, 20 Jun 2001 19:44:51 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Mysterious id in dbgcom.c
References: <200106201809 DOT UAA22983 AT father DOT ludd DOT luth DOT se> <200106201816 DOT OAA01812 AT envy DOT delorie DOT com>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

DJ Delorie 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? Would that make gcc optimise it out?

Bye, Rich =]

-- 
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/

- Raw text -


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