From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,227f28d340d60167 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Nick Roberts Newsgroups: comp.lang.ada Subject: Re: Turning off "Unit xxx not referenced" warnings? Date: Fri, 29 Oct 2004 15:22:07 +0100 Message-ID: <2uf20fF2au91oU1@uni-berlin.de> References: <1099043512.777330.230800@f14g2000cwb.googlegroups.com> <41821fdb$1_1@baen1673807.greenlnk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 5TdnkDjaY+TuTDyuW88lkgP4vjbe2uPs/neP59PkNDs6Q3Trk= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en In-Reply-To: <41821fdb$1_1@baen1673807.greenlnk.net> Xref: g2news1.google.com comp.lang.ada:5864 Date: 2004-10-29T15:22:07+01:00 List-Id: 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, ); > > see section "1. Implementation Defined Pragmas" of the GNAT Reference > Manual. Also see pragma Unreferenced ibid. -- Nick Roberts