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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!saimiri.primate.wisc.edu!ames!decwrl!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: SAS/C 6.00 & ANSI & Strict and C='s includes
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <Bx8xrD.5Br@unx.sas.com>
  8. Date: Thu, 5 Nov 1992 14:04:24 GMT
  9. References: <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca> <1992Nov5.075836.27904@lmpsbbs.comm.mot.com>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Keywords: n
  13. Lines: 55
  14.  
  15.  
  16. In article <1992Nov5.075836.27904@lmpsbbs.comm.mot.com>, rittle@supra.comm.mot.com (Loren James Rittle) writes:
  17. |> In article <1992Nov4.192404.1147@jupiter.sun.csd.unb.ca> mctaylor@mta.ca writes:
  18. |> >Why does my program get lots of warnings when I use ANSI and Strict for
  19. |> >the messages, not from my program but from within the C= includes. The
  20. |> 
  21. |> Because the fine people at C= haven't gotten around to updating the C=
  22. |> includes to be %100 ANSI compliant.  I hope that the 3.0 includes fix
  23. |> these problems.  Actually, I'll take the 3.0 includes in any form at
  24. |> this time... :-)
  25.  
  26. Actually, this is not true.  The STRICT option in this case is being
  27. more picky than ANSI requires.
  28.  
  29. |> Before including one or a set of C= includes:
  30. |> 
  31. |> #pragma msg 148 ignore push
  32. |> #pragma msg 149 ignore push
  33. |> #pragma msg 61 ignore push
  34. |> 
  35. |> After including one or a set of C= includes:
  36. |> 
  37. |> #pragma msg 149 pop
  38. |> #pragma msg 61 pop
  39. |> 
  40. |> Note that msg 148 can't be reset after the includes or a warning/error
  41. |> will be flagged every time certain items in the includes are referred
  42. |> to.
  43.  
  44. If you're never going to reenable 148, it would be better to disable
  45. it with
  46.  
  47. #pragma msg 148 ignore
  48.  
  49. rather than adding "push".  Why make me allocate the four bytes and
  50. keep track of it?  This could add up if you did multiple pushes.
  51.  
  52. Note that it won't matter for the others since you pop it right away.
  53.  
  54. We probably should add those statements to the <proto/...> files,
  55. but unfortunately I didn't think of it (and I don't remember your
  56. request to do it, Loren - sorry.  Must have never gotten above
  57. my subconcious or something).
  58.  
  59. |> Loren J. Rittle (rittle@comm.mot.com)
  60.  
  61. -- 
  62.   *****
  63. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  64.  *|. o.| ||                                          1200/2400/9600 Dual
  65.   | o  |//     For all you do, this bug's for you!
  66.   ====== 
  67. usenet: walker@unx.sas.com                            bix: djwalker 
  68. Any opinions expressed are mine, not those of SAS Institute, Inc.
  69.  
  70.