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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b018778453c6e0e4 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!news.osn.de!diablo2.news.osn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Wilhelm Spickermann Newsgroups: comp.lang.ada Subject: Re: Pragma Unreferenced in GNAT GPL 2008 Date: Wed, 09 Jul 2008 08:06:02 +0200 Message-ID: <6dj2qbF2n59sU1@mid.individual.net> References: <6d8f0qF1c5qaU1@mid.individual.net> <6dgmokF2fhakU2@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net kJZbcB8V2z/vqiukbkjepQO2nSbVlG4rzYmUEmZZg1L6IFzUOG Cancel-Lock: sha1:GHK4Rodc6rNWi7vNOzEGM7vUdeY= Xref: g2news1.google.com comp.lang.ada:1042 Date: 2008-07-09T08:06:02+02:00 List-Id: Alex R. Mosteo wrote: > And I'm being warned that a variable is not referenced when it > indeed is (and it's not a very cornerish case, although it is > within a quite large hierarchy of objects). That seems the > contrary, but maybe something has changed in that area of the > compiler. > I didn't check it again, but IIRC there have been some changes in that area: - Warnings about variables which are accessed only by initializing or finalizing have been changed. (Additional compiler options?) - Variables may be called unused, even if only their contents is potentially unused. (potentially overwriting the contents of an in out parameter before using the contents) (But I don't have the list of changes within reach.) Wilhelm