From: gautier_niouzes@hotmail.com
Subject: Re: Strange warning message
Date: Mon, 27 Nov 2017 01:01:19 -0800 (PST)
Date: 2017-11-27T01:01:19-08:00 [thread overview]
Message-ID: <a35277ab-eee9-407f-aaf5-2b318c695db5@googlegroups.com> (raw)
In-Reply-To: <7c246c12-77f6-45c9-a05a-9afe934df332@googlegroups.com>
> 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 :-) .
next prev parent reply other threads:[~2017-11-27 9:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 8:40 Strange warning message reinert
2017-11-27 9:00 ` Jacob Sparre Andersen
2017-11-27 9:13 ` reinert
2017-11-27 9:45 ` Jacob Sparre Andersen
2017-11-27 10:43 ` reinert
2017-11-27 9:01 ` gautier_niouzes [this message]
2017-11-27 9:09 ` gautier_niouzes
2017-11-27 9:27 ` reinert
2017-11-27 10:42 ` Jeffrey R. Carter
2017-11-27 10:47 ` reinert
2017-11-27 11:52 ` reinert
2017-11-29 0:43 ` Robert Eachus
2017-11-29 10:39 ` reinert
2017-11-29 20:47 ` Randy Brukardt
2017-11-30 14:11 ` reinert
2017-12-01 22:53 ` Robert Eachus
2017-12-02 8:47 ` Simon Wright
2017-12-02 9:47 ` Niklas Holsti
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox