From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c35edbbda4c7f58f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.cs.univ-paris8.fr!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Conditional compilation in Ada? Date: Sun, 21 Nov 2004 10:14:11 +0100 Organization: None Message-ID: <2590697.DIGBFDdaX7@linux1.krischik.com> References: <419b5ff6$0$25329$9b4e6d93@newsread2.arcor-online.net> <1639937.gfTbZPTudf@linux1.krischik.com> <419f9aac$0$16046$9b4e6d93@newsread4.arcor-online.net> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1101028546 01 16116 yVxNX+G1eE4DqOG 041121 09:15:46 X-Complaints-To: usenet-abuse@t-online.de X-ID: VgbrBaZ6YexlT+G7iEgm4yBKey4c1UognCU89e6QeF0nM8W4y2a64N User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:6305 Date: 2004-11-21T10:14:11+01:00 List-Id: Georg Bauhaus wrote: > Martin Krischik wrote: > >> The thing I which for is a pragma to switch off the damm warning about >> not knowing pragma X. > > As another example, I also have pragma TODO[(...)]; > in my sources. I definitely want a compiler warning for these. > > You'd have to have a pragma to turn off the warnings about > a pragma ... ;-) Or something in the project file. > I think it's better to write source code that doesn't > produce (too many) warnings because it is correct. If the > sources are not to be trusted yet, I just live with the warnings. > They are good reminders. You are right. but pragmas are a special case. I remember the time when AdaCL was less the 37 packages and I keeps it compatible with the Aonix compiler. ObjectAda did not know about "pragma Unreferenced" and would produce a warning every time. And I had a lot of "pragma Unreferenced (Trace);". [Trace is a controlled object created only for tracking function enty and exit points] I could use my trace facility without pragma Unreferenced but then GNAT would produce warnings about unreferenced objects. Eventualy AdaCL reached the 37 package limit and the problem solved itself - I droped ObjectAda support. With Regards Martin PS: -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com