comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Missing Index Value in Array Aggregate
Date: Fri, 28 Sep 2007 06:05:11 -0400
Date: 2007-09-28T06:05:11-04:00	[thread overview]
Message-ID: <utzpfds14.fsf@stephe-leake.org> (raw)
In-Reply-To: 1i548co.yz2f6m45x0mwN%csampson@inetworld.net

csampson@inetworld.net (Charles H. Sampson) writes:

>      I should have given more detail of the context.
> Although it's not relevant now, here it is: The aggregate
> was the initial value of a constant array object, the type
> of that object being an anonymous array type whose index
> is a constrained enumeration type.  My compiler did give
> me the (proper) warning of a constraint error at run time.
> Unfortunately, the warning was overlooked because the
> compiler tends to put out a bunch of warnings of much
> less value.

What compiler?

With GNAT, I have a policy to eliminate _all_ warnings by fixing the
source code. Same with Gnu C, when I'm forced to use that.

Doing so fixes bugs.

Sometimes I have to resort to a compiler switch to suppress a
warning, but very rarely.

-- 
-- Stephe



  reply	other threads:[~2007-09-28 10:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 13:21 Missing Index Value in Array Aggregate Charles H. Sampson
2007-09-26 15:54 ` Adam Beneschan
2007-09-26 23:33   ` Randy Brukardt
2007-09-28  3:21     ` Charles H. Sampson
2007-09-28 10:05       ` Stephen Leake [this message]
2007-09-28 10:26         ` Ludovic Brenta
2007-09-28 16:21           ` Pascal Obry
2007-09-28 20:26             ` Maciej Sobczak
2007-10-03 17:01               ` roderick.chapman
2007-09-29 15:31         ` Charles H. Sampson
2007-09-30 11:02           ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox