comp.lang.ada
 help / color / mirror / Atom feed
From: Nick Roberts <nick.roberts@acm.org>
Subject: Re: Turning off "Unit xxx not referenced" warnings?
Date: Fri, 29 Oct 2004 15:22:07 +0100
Date: 2004-10-29T15:22:07+01:00	[thread overview]
Message-ID: <2uf20fF2au91oU1@uni-berlin.de> (raw)
In-Reply-To: <41821fdb$1_1@baen1673807.greenlnk.net>

Martin Dowie wrote:

> ggroups@steelskies.com wrote:
> 
>>I have a file which with's a bunch of other files purely to force
>>their elaboration.
>>As a result, I get a number of "Unit xxx not referenced" warnings.  Is
>>there any way to get rid of them?
>>There's a compiler switch which turns the warning off, but I'd prefer
>>to do it on a per-file basis.  Is there not a pragma or something for
>>this?
> 
> 
> For GNAT,
> 
> pragma Warnings (Off, <unit_name>);
> 
> see section "1. Implementation Defined Pragmas" of the GNAT Reference
> Manual.

Also see pragma Unreferenced ibid.

-- 
Nick Roberts



  reply	other threads:[~2004-10-29 14:22 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 [this message]
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
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