gcc warning about sccsid[]/rcsid[] not being used
Christos S. Zoulas
christos at theory.TC.Cornell.EDU
Sun Jun 30 12:38:45 AEST 1991
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 at ee.cornell.edu | Cornell University, Ithaca NY 14853.
christos at crnlee.bitnet | Phone: (607) 255 0302, Fax: (607) 255 9072
More information about the Comp.lang.c
mailing list