Subject: Re: Compiler warning levels and sccsid/rcsid
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: current-users
Date: 07/28/1995 12:29:16
>> char rcsid[] __attribute__ ((unused)) = "...";

> Rather than taint all code with non-portable constructs

I'm not concerned about that.  Presumably the source would read
something like

char rcsid[] __unused = "...";

with __unused in <sys/cdefs.h> or something akin thereto.

Besides, gcc is a pretty portable language anyway. :-)

> how about a script, say, "checkcc" with something like

> 	cc -warnings -more-warnings $* 2>&1 | \
> 	    egrep -v ": warning: `(rcsid|sccsid)' declared but not used$" |
> 	    grep -v ": warning: any other annoying warnings here$'

> then simply "make CC=checkcc all".

You lose the benefit of -Werror if you do that.

					der Mouse