Newsgroups: comp.lang.c
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!theory.TC.Cornell.EDU!christos
From: christos@theory.TC.Cornell.EDU (Christos S. Zoulas)
Subject: gcc warning about sccsid[]/rcsid[] not being used
Message-ID: <1991Jun30.023845.26216@batcomputer.tn.cornell.edu>
Originator: christos@theory.TC.Cornell.EDU
Sender: news@batcomputer.tn.cornell.edu
Nntp-Posting-Host: theory.tc.cornell.edu
Organization: Electrical Engineering, Cornell University, Ithaca NY
Date: Sun, 30 Jun 1991 02:38:45 GMT

Hello,

I compile most of my code with gcc -Wall. Unfortunately I use either sccs
or rcs and I like to keep an sccs or rcs string as:

#ifndef lint
static char rcsid[] = "$Id$";
#endif

Unfortunately there is no way I know of to tell gcc that 
I know that this variable is not used and I don't care! How do other 
people avoid this warning? I know that I could say:

#ifndef __GNUC__
...

but then the strings are not compiled in the code...

I wish that there was a:

#pragma notused 

or something along those lines...


christos
-- 
Christos Zoulas         | 389 Theory Center, Electrical Engineering,
christos@ee.cornell.edu | Cornell University, Ithaca NY 14853.
christos@crnlee.bitnet  | Phone: (607) 255 0302, Fax: (607) 255 9072
