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!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Turning off "Unit xxx not referenced" warnings? Date: 30 Oct 2004 15:51:22 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <1099043512.777330.230800@f14g2000cwb.googlegroups.com> <41821fdb$1_1@baen1673807.greenlnk.net> <2uf20fF2au91oU1@uni-berlin.de> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1099148274 10462 62.49.19.209 (30 Oct 2004 14:57:54 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 30 Oct 2004 14:57:54 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:5914 Date: 2004-10-30T15:51:22+01:00 List-Id: "Martin Dowie" writes: > "Nick Roberts" wrote in message > news:2uf20fF2au91oU1@uni-berlin.de... > >> For GNAT, > >> > >> pragma Warnings (Off, ); > >> > >> 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.