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:30:02 -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:30:36 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8b798b1cbad0bd6c9b93de345575f48d"; logging-data="17775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18giMcYFZZHqcJs1iPvsq33+yTA9cIAkFw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: Cancel-Lock: sha1:9F7olvG2r7ht+TxY8i0VwMoPL54= Xref: news.eternal-september.org comp.lang.ada:24584 Date: 2015-01-15T15:30:02-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 that the OP compiled, since he didn't post it. There's no telling what might lie between "begin" and line 25 in that code that would cause the difference. -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33