From: Simon Wright <simon@pushface.org>
Subject: Re: Turning off "Unit xxx not referenced" warnings?
Date: 30 Oct 2004 15:51:22 +0100
Date: 2004-10-30T15:51:22+01:00 [thread overview]
Message-ID: <x7vekjgp8d1.fsf@smaug.pushface.org> (raw)
In-Reply-To: cltvmk$qne$1@hercules.btinternet.com
"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);
--
Simon Wright 100% Ada, no bugs.
next prev parent reply other threads:[~2004-10-30 14:51 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 [this message]
2004-11-02 9:21 ` Alex R. Mosteo
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