home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15392 < prev    next >
Encoding:
Text File  |  1992-11-05  |  2.1 KB  |  60 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!panther!mothost!lmpsbbs!supra.comm.mot.com!rittle
  3. From: rittle@supra.comm.mot.com (Loren James Rittle)
  4. Subject: Re: SAS/C 6.00 & ANSI & Strict and C='s includes
  5. Organization: Land Mobile Products Sector, Motorola Inc.
  6. Date: Thu, 5 Nov 1992 07:58:36 GMT
  7. Message-ID: <1992Nov5.075836.27904@lmpsbbs.comm.mot.com>
  8. Keywords: n
  9. References: <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca>
  10. Sender: news@lmpsbbs.comm.mot.com (Net News)
  11. Nntp-Posting-Host: 145.1.80.40
  12. Lines: 46
  13.  
  14. In article <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca> mctaylor@mta.ca writes:
  15. >Why does my program get lots of warnings when I use ANSI and Strict for
  16. >the messages, not from my program but from within the C= includes. The
  17.  
  18. Because the fine people at C= haven't gotten around to updating the C=
  19. includes to be %100 ANSI compliant.  I hope that the 3.0 includes fix
  20. these problems.  Actually, I'll take the 3.0 includes in any form at
  21. this time... :-)
  22.  
  23. >warning I am talking about is 149, something abouts structs. I would think
  24. >that SAS would of picked this up. I am using the uncompressed headers.
  25. >Not much else I can think that would effect it. So why does it do it?
  26.  
  27. As a SAS/C beta tester, I asked them to include something like
  28. the following in the 6.0 manual (it may be there somewhere even
  29. --- I haven't reread the entire new manual yet):
  30.  
  31. To compile without warnings with the STRICT ANSI WARNING=ALL
  32. options enabled on SC, you must place the following around
  33. any #include statements that refers to C= OS includes:
  34.  
  35. Before including one or a set of C= includes:
  36.  
  37. #pragma msg 148 ignore push
  38. #pragma msg 149 ignore push
  39. #pragma msg 61 ignore push
  40.  
  41. After including one or a set of C= includes:
  42.  
  43. #pragma msg 149 pop
  44. #pragma msg 61 pop
  45.  
  46. Note that msg 148 can't be reset after the includes or a warning/error
  47. will be flagged every time certain items in the includes are referred
  48. to.
  49.  
  50. Hope this helps.  I used the above to get my version of ls to compile
  51. under 6.0 with all warning enabled.
  52.  
  53. Regards,
  54. Loren
  55. --
  56. Loren J. Rittle (rittle@comm.mot.com)
  57. Systems Technology Research (IL02/2240)
  58. Motorola, Inc.
  59. (708)576-7794
  60.