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.6.16 with SMTP id 16mr23391041iog.105.1511773279648; Mon, 27 Nov 2017 01:01:19 -0800 (PST) X-Received: by 10.157.33.82 with SMTP id l18mr1643069otd.6.1511773279530; Mon, 27 Nov 2017 01:01:19 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!i6no7254088itb.0!news-out.google.com!193ni4277iti.0!nntp.google.com!i6no7254083itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 27 Nov 2017 01:01:19 -0800 (PST) In-Reply-To: <7c246c12-77f6-45c9-a05a-9afe934df332@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=57.79.21.10; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 57.79.21.10 References: <7c246c12-77f6-45c9-a05a-9afe934df332@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Strange warning message From: gautier_niouzes@hotmail.com Injection-Date: Mon, 27 Nov 2017 09:01:19 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 3767541140 X-Received-Bytes: 1771 Xref: reader02.eternal-september.org comp.lang.ada:49176 Date: 2017-11-27T01:01:19-08:00 List-Id: > when I compile the enclosed program with option "-gnatwa" (i.e. "gnatmake -gnatwa test1k.adb", I get the following annoying warning: > > "warning: useless assignment to "test1", value never referenced" With GNAT GPL 2017 the formulation is a bit "rounder": test1k.adb:20:03: warning: possibly useless assignment to "test1", value might not be referenced Now, *in your example* the warning is justified, since you make a useless assignement :-) .