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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Compiler checking of String lengths during assignment (Newbie Question) Date: Thu, 15 Jan 2015 15:32:45 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <77d434cc-00bc-4a2f-b50e-40736abdd2b2@googlegroups.com> <93725194-bf90-400f-844f-7d0d49adf030@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Thu, 15 Jan 2015 22:32:18 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8b798b1cbad0bd6c9b93de345575f48d"; logging-data="17775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192XvpWM3L0Dt1hYfalVJzfLNQ24D8Q/o8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: Cancel-Lock: sha1:zdd1oMyt+v/XZxvzHxAS3C40nD8= Xref: news.eternal-september.org comp.lang.ada:24585 Date: 2015-01-15T15:32:45-07:00 List-Id: On 01/15/2015 02:18 PM, Simon Wright wrote: > > As I think I've said before, with the same compiler (on Mac OS X, but > I'd be _very_ surprised if that made a difference) I get warnings on all > three lines. You don't have the code the OP compiled, since he didn't post it. There's no telling what may appear between "begin" and the lines in question in that code. As Duff showed, a null procedure call is enough to eliminate the warning on the line using I. -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33