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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.104.6 with SMTP id d6mr22571982ioc.138.1511774026687; Mon, 27 Nov 2017 01:13:46 -0800 (PST) X-Received: by 10.157.85.67 with SMTP id h3mr1649033oti.10.1511774026602; Mon, 27 Nov 2017 01:13:46 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!weretis.net!feeder4.news.weretis.net!news.roellig-ltd.de!open-news-network.org!peer02.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!193no849966itr.0!news-out.google.com!x87ni5184ita.0!nntp.google.com!193no849961itr.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 27 Nov 2017 01:13:46 -0800 (PST) In-Reply-To: <87wp2cxfif.fsf@jacob-sparre.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.167.214.186; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 85.167.214.186 References: <7c246c12-77f6-45c9-a05a-9afe934df332@googlegroups.com> <87wp2cxfif.fsf@jacob-sparre.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9e2e130c-72e6-4a77-9bab-dacc22f22a25@googlegroups.com> Subject: Re: Strange warning message From: reinert Injection-Date: Mon, 27 Nov 2017 09:13:46 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1789666105 X-Received-Bytes: 2023 Xref: reader02.eternal-september.org comp.lang.ada:49178 Date: 2017-11-27T01:13:46-08:00 List-Id: On Monday, November 27, 2017 at 10:00:41 AM UTC+1, Jacob Sparre Andersen wrote: ...snip... > > As the warning says, you don't reference the variable "test1". OK, but still I am confused. The loop (in the program): for e of test1 loop e := new test1_t; end loop; does the same as "test1(1) := new test1_t;" ? I would expect the loop should cause a warning as well? My intention is a start a task when/if I want (using "new test1_t;"). reinert > > If that is on purpose and you use GNAT, you can attach the aspect > "Unreferenced" to "test1". > > Greetings, > > Jacob > -- > "Being an absolute ruler today was not as simple as people > thought. At least, it was not simple if your ambitions > included being an absolute ruler tomorrow."