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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c35edbbda4c7f58f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!infeed-1.proxad.net!news13-e.free.fr!not-for-mail Date: Sun, 12 Dec 2004 01:17:13 +0100 From: Lionel Draghi User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 X-Accept-Language: fr-fr, en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: How to switch off those damm warnings about unknows pragma References: <419b5ff6$0$25329$9b4e6d93@newsread2.arcor-online.net> <1639937.gfTbZPTudf@linux1.krischik.com> In-Reply-To: <1639937.gfTbZPTudf@linux1.krischik.com> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <41bb8e13$0$19258$626a14ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 12 Dec 2004 01:17:23 MET NNTP-Posting-Host: 82.65.83.39 X-Trace: 1102810643 news13-e.free.fr 19258 82.65.83.39:33581 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:6894 Date: 2004-12-12T01:17:23+01:00 List-Id: Martin Krischik a �crit : ... > The thing I which for is a pragma to switch off the damm warning about not > knowing pragma X. I strongly agree. We do use handy GNAT specific pragma, and they cause lots of spurious warning when compiling with ObjectAda. Filtering those useless warning is a pain. But even before adding a new pragma to the language, I asked to myself why compiler vendors don't provide a compile option to ignore a (precise) list of pragmas. I suppose it's a simple change in compilers code. My hypothesis is that: - vendors don't wan't to ease the life of customers using competitor's product :-) - most Ada programs are compiled for a single platform - most of those compiled for more platform are with the same compiler - most of those compiled with several compiler or for several platform are when migrating from one to another, and don't actually target them simultaneously Let's now remove from the few remaining those using no specific pragma, and those who don't read warnings :-), and there is almost no customer in the world for seach a feature! Anyway, we are at least two :-) -- Lionel Draghi