🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54383

Re: -Wall switch with SCCS

#54383
From: Arnold Robbins
Date: Mon, 19 Nov 1990 17:52
31 lines
1672 bytes
In article <1990Oct26.225541.10199@odetics.com> Frank Merrow writes:
> [...]
> Every program has the following statement in the heading:
>
>static char SCCS_ID[]="%W%";
>
>We want the string to appear in the output module, but to prevent the various
>SCCS_IDs from the various modules from interfering with each other they are
>declared as static.  The -Wall switch implies the -Wunused switch which is
>generating a annoying warning. [....]

Our code uses

	#ifndef lint
	static char rcsid[] = "$Id$";
	#endif /* lint */

Then I use the following (shell) function to "lint" my code:

	lint ()
	{
		gcc -c -Wall -Dlint "$@"
	}

This also also makes any standard header files that do things based on
"lint" being defined or not defined more usable with gcc.
-- 
Arnold Robbins				AudioFAX, Inc. | Laundry increases
2000 Powers Ferry Road, #200 / Marietta, GA. 30067     | exponentially in the
INTERNET: arnold@audiofax.com Phone:   +1 404 933 7612 | number of children.
UUCP:	  emory!audfax!arnold Fax-box: +1 404 618 4581 |   -- Miriam Robbins
Technical Details
Message-ID: <306@audfax.audiofax.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!usc!wuarchive!emory!audfax!arnold
References: <1990Oct26.225541.10199@odetics.com> <1990Oct28.155610.5337@druid.uucp>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8fc915badc50c6dd
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-11-19 09:52:25 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!usc!wuarchive!emory!audfax!arnold
From: arnold@audiofax.com (Arnold Robbins)
Newsgroups: gnu.gcc.help
Subject: Re: -Wall switch with SCCS
Message-ID: <306@audfax.audiofax.com>
Date: 19 Nov 90 17:52:25 GMT
References: <1990Oct26.225541.10199@odetics.com> <1990Oct28.155610.5337@druid.uucp>
Organization: AudioFAX, Inc., Atlanta, GA
Lines: 31
Posted: Mon Nov 19 18:52:25 1990