From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: Turning off "Unit xxx not referenced" warnings?
Date: Fri, 29 Oct 2004 11:54:05 +0100
Date: 2004-10-29T11:54:05+01:00 [thread overview]
Message-ID: <41821fdb$1_1@baen1673807.greenlnk.net> (raw)
In-Reply-To: 1099043512.777330.230800@f14g2000cwb.googlegroups.com
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.
Cheers
-- Martin
next prev parent reply other threads:[~2004-10-29 10:54 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 [this message]
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
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