comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Turning off "Unit xxx not referenced" warnings?
Date: 02 Nov 2004 21:58:06 +0000
Date: 2004-11-02T21:58:06+00:00	[thread overview]
Message-ID: <x7vd5yvlxqp.fsf@smaug.pushface.org> (raw)
In-Reply-To: 41875189.1000203@mailinator.com

"Alex R. Mosteo" <devnull@mailinator.com> 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.



  reply	other threads:[~2004-11-02 21:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29  9:51 Turning off "Unit xxx not referenced" warnings? ggroups
2004-10-29 10:54 ` Martin Dowie
2004-10-29 14:22   ` Nick Roberts
2004-10-29 17:47     ` Martin Dowie
2004-10-30 14:51       ` Simon Wright
2004-11-02  9:21         ` Alex R. Mosteo
2004-11-02 21:58           ` Simon Wright [this message]
2004-10-29 18:56 ` Jeffrey Carter
2004-11-03  0:54   ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox