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,39bde956b245c191 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.31.165 with SMTP id b5mr5157522pbi.1.1323352818607; Thu, 08 Dec 2011 06:00:18 -0800 (PST) Path: lh20ni83318pbb.0!nntp.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: How to nicely distribute a simple Ada library? Date: Thu, 08 Dec 2011 09:00:17 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4edb8625$0$7623$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1323352817 7143 192.74.137.71 (8 Dec 2011 14:00:17 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 8 Dec 2011 14:00:17 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:hNDdBDRgqqY+9exslHXcaNXJ1hU= Xref: news2.google.com comp.lang.ada:14876 Content-Type: text/plain; charset=us-ascii Date: 2011-12-08T09:00:17-05:00 List-Id: Natasha Kerensikova writes: > It seems I do use a GNAT-specific pragma, which is pragma Unreferenced. > I find it very useful (with the associated "unreferenced" warning), but > only during active development. I guess once released, and used without > modification, it becomes useless? Note that a compiler that doesn't support pragma Unreferenced will ignore it (with a warning). Same for any other unrecognized pragmas. So if a pragma doesn't do anything important at run time (like Unreferenced), then it's safe to leave it in. 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. - Bob