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,227f28d340d60167 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Turning off "Unit xxx not referenced" warnings? Date: 02 Nov 2004 21:58:06 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <1099043512.777330.230800@f14g2000cwb.googlegroups.com> <41821fdb$1_1@baen1673807.greenlnk.net> <2uf20fF2au91oU1@uni-berlin.de> <41875189.1000203@mailinator.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1099433079 25391 62.49.19.209 (2 Nov 2004 22:04:39 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 2 Nov 2004 22:04:39 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:5970 Date: 2004-11-02T21:58:06+00:00 List-Id: "Alex R. Mosteo" writes: > But Unreferenced doesn't work for packages, I tried it... maybe that's > the reason for using Warnings. I thought it did -- oh well One reason for not using Unreferenced is that you (now) get problems with nested generics; in the BCs, generic type Item is private; with function "=" (L, R : Item) return Boolean is <>; package BC.Containers is ends up complaining about the "=" which happens not to be referenced at this level. If you use Unreferenced, you get warnings when it is in fact used in child packages. Hmph. (this is 5.02a1 behaviour, may not be in public releases) -- Simon Wright 100% Ada, no bugs.