From owner-freebsd-current Mon Oct 7 03:43:27 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA06422 for current-outgoing; Mon, 7 Oct 1996 03:43:27 -0700 (PDT) Received: from lassie.eunet.fi (lassie.eunet.fi [192.26.119.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA06406 for ; Mon, 7 Oct 1996 03:43:20 -0700 (PDT) Received: from marathon.tekla.fi by lassie.eunet.fi with SMTP id AA02823 (5.67a/IDA-1.5 for ); Mon, 7 Oct 1996 12:43:09 +0200 Received: from poveri.tekla.fi by marathon.tekla.fi (5.65/20-jun-90) id AA23327; Mon, 7 Oct 1996 12:43:07 +0200 From: sja@tekla.fi (Sakari Jalovaara) Received: by poveri.tekla.fi; (5.65v3.2/1.1.8.2/20Aug96-0557PM) id AA10431; Mon, 7 Oct 1996 13:43:07 +0300 Date: Mon, 7 Oct 1996 13:43:07 +0300 Message-Id: <9610071043.AA10431@poveri.tekla.fi> To: current@FreeBSD.org Subject: Re: compiling -current with -Dlint Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >> >> 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