Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 1996 13:43:07 +0300
From:      sja@tekla.fi (Sakari Jalovaara)
To:        current@FreeBSD.org
Subject:   Re: compiling -current with -Dlint
Message-ID:  <9610071043.AA10431@poveri.tekla.fi>

next in thread | raw e-mail | index | archive | help
>>  
>> Id strings should be declared as const and possibly as __unused, and
>> possibly in a macro so that the details can be changed.
>> 
>
>I have been able to get rid of the offending warning without
>-Dlint by using a declaration like:
>
>	static char const sccsid[] = "...";

How about hacking the C compiler so it doesn't emit unused variable
warnings about static variables called "sccsid" or "rcsid"?  It's a
two-line change.
									++sja



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9610071043.AA10431>