From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Turning off "Unit xxx not referenced" warnings?
Date: Tue, 02 Nov 2004 10:21:13 +0100
Date: 2004-11-02T10:21:13+01:00 [thread overview]
Message-ID: <41875189.1000203@mailinator.com> (raw)
In-Reply-To: <x7vekjgp8d1.fsf@smaug.pushface.org>
Simon Wright wrote:
> "Martin Dowie" <martin.dowie@btopenworld.com> writes:
>
>
>>"Nick Roberts" <nick.roberts@acm.org> wrote in message
>>news:2uf20fF2au91oU1@uni-berlin.de...
>>
>>>>For GNAT,
>>>>
>>>>pragma Warnings (Off, <unit_name>);
>>>>
>>>>see section "1. Implementation Defined Pragmas" of the GNAT Reference
>>>>Manual.
>>>
>>>Also see pragma Unreferenced ibid.
>>
>>Yes, I've noticed that newer code coming out of ACT uses "Warnings (Off"
>>rather than "Unreferenced" - no idea why...
>
>
> I thought Unreferenced (X) was newer than Warnings (Off, X)?
>
> The good thing about Unreferenced is that you get a warning if you do
> access the thing.
>
> The slightly confusing thing is that it sort-of means "read": eg,
> declaring a BC lock, which locks during elaboration,
>
> L : Lock (Some_Semaphore'Access);
> pragma Unreferenced (L);
But Unreferenced doesn't work for packages, I tried it... maybe that's
the reason for using Warnings.
next prev parent reply other threads:[~2004-11-02 9:21 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 [this message]
2004-11-02 21:58 ` Simon Wright
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