home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18478 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.2 KB  |  31 lines

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