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: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Turning off "Unit xxx not referenced" warnings? Date: Fri, 29 Oct 2004 11:54:05 +0100 Organization: BAE SYSTEMS Message-ID: <41821fdb$1_1@baen1673807.greenlnk.net> References: <1099043512.777330.230800@f14g2000cwb.googlegroups.com> X-Trace: news.uni-berlin.de UvBAU9xN8+t/+mD97dCHRwv8SpddqwJZldA76yiNrEl8jd79oI X-Orig-Path: baen1673807.greenlnk.net!baen1673807!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net Xref: g2news1.google.com comp.lang.ada:5842 Date: 2004-10-29T11:54:05+01:00 List-Id: 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. Cheers -- Martin