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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, WEIRD_QUOTING autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,39bde956b245c191 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.21.165 with SMTP id w5mr5357165pbe.7.1323358704610; Thu, 08 Dec 2011 07:38:24 -0800 (PST) Path: lh20ni83567pbb.0!nntp.google.com!news1.google.com!goblin3!goblin.stu.neva.ru!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 08 Dec 2011 16:37:44 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How to nicely distribute a simple Ada library? References: <4edb8625$0$7623$9b4e6d93@newsspool1.arcor-online.net> In-Reply-To: Message-ID: <4ee0d9c9$0$6581$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 08 Dec 2011 16:37:45 CET NNTP-Posting-Host: f0f2d66b.newsspool3.arcor-online.net X-Trace: DXC=k@U^Y8NPk1NFJ3]dH>I?oEMcF=Q^Z^V3H4Fo<]lROoRA8kFJLh>_cHTX3jMmF:mfBQ;aNA X-Complaints-To: usenet-abuse@arcor.de Xref: news1.google.com comp.lang.ada:19391 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2011-12-08T16:37:45+01:00 List-Id: On 08.12.11 15:00, Robert A Duff wrote: > The warnings ("Never heard of pragma Unreferenced") might be annoying, > but that's unavoidable. Different compilers give different warnings. > If you're using multiple compilers, pick one whose warnings you like, > and pay attention to them (and use "pragma Warnings(Off)" or whatever > as appropriate). For other compilers, just ignore the warnings. One such warning is p.adb: Warning: line 10 col 10 LRM:2.8(11), Unrecognized pragma name => "unreferenced", Continuing With programmable IDEs, warnings can be ignored inasmuch as the IDE allows classifying and filtering messages. One easy way to achieve this is to ignore messages that have uniquely identifying substrings. To_Be_Ignored.Append ("Unrecognized pragma name => ""unreferenced"""); Pattern := +""; for Warning of To_Be_Ignored loop Pattern := Pattern or Warning; end loop; Then, something like $ gnatmake -Pfoo 2>&1 | grep -v "${Pattern}"