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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6009c73a58f787a0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-14 00:54:28 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov) Newsgroups: comp.lang.ada Subject: Re: How to avoid unreferenced objects (mutexes etc) Date: Mon, 14 Jan 2002 08:54:23 GMT Message-ID: <3c429bf8.2332484@News.CIS.DFN.DE> References: <3c3ee8c8.105408250@News.CIS.DFN.DE> <5ee5b646.0201111140.48bf30e2@posting.google.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) X-Trace: fu-berlin.de 1010998463 30561773 212.79.194.111 (16 [77047]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:18888 Date: 2002-01-14T08:54:23+00:00 List-Id: On 11 Jan 2002 11:40:37 -0800, dewar@gnat.com (Robert Dewar) wrote: >dmitry@elros.cbb-automation.de (Dmitry A. Kazakov) wrote in message news:<3c3ee8c8.105408250@News.CIS.DFN.DE>... >> The problem is that the object Temp is never referenced. >> The compiler >> complains of that, but it is a minor problem. The >> questions are > > >In GNAT, we just introduced > > pragma Unreferenced (entity-name, entity-name, ....); > >specifically to deal with entities that are deliberately >unreferenced. This pragma supresses unreferenced warnings >for the entity, and gives an error if the entity is actually referenced. > >It provides useful documentation that the entity is really >really intended to be there, and serves a purpose even >though it is not specifically referenced. Very nice. In which GNAT version it appears? Regards, Dmitry Kazakov