Date: Thu, 21 Jun 2001 10:35:39 +0300 (IDT) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.