home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!panther!mothost!lmpsbbs!supra.comm.mot.com!rittle
- From: rittle@supra.comm.mot.com (Loren James Rittle)
- Subject: Re: SAS/C 6.00 & ANSI & Strict and C='s includes
- Organization: Land Mobile Products Sector, Motorola Inc.
- Date: Thu, 5 Nov 1992 07:58:36 GMT
- Message-ID: <1992Nov5.075836.27904@lmpsbbs.comm.mot.com>
- Keywords: n
- References: <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca>
- Sender: news@lmpsbbs.comm.mot.com (Net News)
- Nntp-Posting-Host: 145.1.80.40
- Lines: 46
-
- In article <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca> mctaylor@mta.ca writes:
- >Why does my program get lots of warnings when I use ANSI and Strict for
- >the messages, not from my program but from within the C= includes. The
-
- Because the fine people at C= haven't gotten around to updating the C=
- includes to be %100 ANSI compliant. I hope that the 3.0 includes fix
- these problems. Actually, I'll take the 3.0 includes in any form at
- this time... :-)
-
- >warning I am talking about is 149, something abouts structs. I would think
- >that SAS would of picked this up. I am using the uncompressed headers.
- >Not much else I can think that would effect it. So why does it do it?
-
- As a SAS/C beta tester, I asked them to include something like
- the following in the 6.0 manual (it may be there somewhere even
- --- I haven't reread the entire new manual yet):
-
- To compile without warnings with the STRICT ANSI WARNING=ALL
- options enabled on SC, you must place the following around
- any #include statements that refers to C= OS includes:
-
- Before including one or a set of C= includes:
-
- #pragma msg 148 ignore push
- #pragma msg 149 ignore push
- #pragma msg 61 ignore push
-
- After including one or a set of C= includes:
-
- #pragma msg 149 pop
- #pragma msg 61 pop
-
- Note that msg 148 can't be reset after the includes or a warning/error
- will be flagged every time certain items in the includes are referred
- to.
-
- Hope this helps. I used the above to get my version of ls to compile
- under 6.0 with all warning enabled.
-
- Regards,
- Loren
- --
- Loren J. Rittle (rittle@comm.mot.com)
- Systems Technology Research (IL02/2240)
- Motorola, Inc.
- (708)576-7794
-