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-Thread: 103376,612ea65294f56d25 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!d26g2000prn.googlegroups.com!not-for-mail From: Julian Leyh Newsgroups: comp.lang.ada Subject: Re: Syntax of extended return statement Date: Wed, 16 Mar 2011 03:28:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 194.156.172.86 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1300271336 20086 127.0.0.1 (16 Mar 2011 10:28:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 16 Mar 2011 10:28:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d26g2000prn.googlegroups.com; posting-host=194.156.172.86; posting-account=4IMjSwoAAABghF4GBOy5ozdaZM8EkGwR User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19209 Date: 2011-03-16T03:28:56-07:00 List-Id: On 16 Mrz., 01:01, Bill Findlay wrote: > I have the following compilation warning from GNAT: > > =A0 =A0function pop > =A0 =A0return KDF9.word is > =A0 =A0begin > =A0 =A0 =A0 the_nest_depth :=3D the_nest_depth - 1; > =A0 =A0 =A0 return result : KDF9.word :=3D the_nest(the_nest_depth) do > =A0 =A0 =A0 =A0 =A0 =A0 =A0|>>> warning: "result" is not modified, could = be declared constant > > =A0 =A0 =A0 =A0 =A0the_nest(the_nest_depth) :=3D 0; > =A0 =A0 =A0 end return; > =A0 =A0end pop; "result" is not modified, so the warning is correct.