🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2289

Re: comment style

#2289
From: Karl Heuer
Date: Mon, 14 Jan 1991 20:01
13 lines
1231 bytes
In article <1991Jan08.164014.26804@sco.COM> ron@scocan.sco.COM (Ron Irvine) writes:
>[The code fragment "a = 100/*p /* calculate first factor */" was compiled
>with no warning on four diferent compilers, one of which was gcc.]

gcc does indeed flag this, provided you have the warnings enabled with -Wall.
I strongly recommend using this option, and avoiding those coding styles% that
violate the assumptions it uses.  (In fact, I normally compile my own code
with gcc -Wall -Wcast-qual -Wwrite-strings, and lint it as well.)

Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint
________
% In particular, the (legal but questionable)
	/*#define BSD 1 /* uncomment this line for BSD systems */
Technical Details
Message-ID: <1991Jan14.200141.7551@dirtydog.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod!pacific.mps.ohio-state.edu!linac!att!att!ima!dirtydog!karl
References: <1991Jan08.164014.26804@sco.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod!pacific.mps.ohio-state.edu!linac!att!att!ima!dirtydog!karl
From: karl@ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: comment style
Message-ID: <1991Jan14.200141.7551@dirtydog.ima.isc.com>
Date: 14 Jan 91 20:01:41 GMT
References: <1991Jan08.164014.26804@sco.COM>
Sender: news@dirtydog.ima.isc.com (NEWS ADMIN)
Organization: Interactive Systems
Lines: 13