home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!spool.mu.edu!sgiblab!sgigate!odin!twilight!zuni!anchor!olson
- From: olson@anchor.esd.sgi.com (Dave Olson)
- Subject: Re: Rules for naked ";" in ANSI "C"?
- Message-ID: <ufujguc@zuni.esd.sgi.com>
- Sender: news@zuni.esd.sgi.com (Net News)
- Organization: Silicon Graphics, Inc. Mountain View, CA
- References: <255@trident.datasys.swri.edu>
- Date: Tue, 5 Jan 93 06:44:49 GMT
- Lines: 19
-
- In <255@trident.datasys.swri.edu> noren@trident.datasys.swri.edu (Greg Noren) writes:
-
- | I turned -fullwarn on some "C" code I was ANSIfying and tangled
- | with a bothersome warning from cc(). Take a look at the
- | following test program derived from the code in question.
- ...
- | Compiling with: "cc -o test -ansi -fullwarn test.c" produces
- | an executable which runs correctly and the following accom
- | warning for the "D(printf...);" macro line:
- |
- | accom: Warning 302: test.c, line 17: bodyless for statement
-
- Use -woff 302 in your command line ('302' is any comma
- seperated listed of warnings you don't want to see.
-
- --
- Let no one tell me that silence gives consent, | Dave Olson
- because whoever is silent dissents. | Silicon Graphics, Inc.
- Maria Isabel Barreno | olson@sgi.com
-