Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Newsgroups: comp.lang.c Subject: Re: gcc warning about sccsid[]/rcsid[] not being used Message-ID: <1991Jun30.144500.28376@news.iastate.edu> Date: 30 Jun 91 14:45:00 GMT References: <1991Jun30.023845.26216@batcomputer.tn.cornell.edu> Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames, IA Lines: 24 christos@theory.TC.Cornell.EDU (Christos S. Zoulas) writes: }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: Well, how about by using it? Seriously, it's not a bad idea to: a) print it to the logfile upon startup b) have some (obscure) command line flag c) or key sequence display it depending on what kind of program it is. John ------------------------------------------------------------------------------- John Hascall An ill-chosen word is the fool's messenger. Project Vincent Iowa State University Computation Center john@iastate.edu Ames, IA 50011 (515) 294-9551