From: Jan Andres <J@nAndr.es>
Subject: Re: Strange GNAT compiler warning
Date: Wed, 28 Dec 2011 17:47:43 +0000 (UTC)
Date: 2011-12-28T17:47:43+00:00 [thread overview]
Message-ID: <jdfknv$bk5$1@dont-email.me> (raw)
In-Reply-To: 4efb48b1$0$6558$9b4e6d93@newsspool4.arcor-online.net
On 2011-12-28, Georg Bauhaus <rm.dash-bauhaus@futureapps.de> wrote:
> On 28.12.11 15:37, Jan Andres wrote:
>> package Strange_Warning is
>> type Foo is limited interface;
>> type Bar is new Foo with null record;
>> end Strange_Warning;
>
> -Wall is a GCC option made for front ends to languages
> other than Ada, in GCC.
>
> Use -gnatwa instead.
A-ha, thanks!
Actually, this is what the GNAT doc says about -Wall:
| `-Wall'
| This switch enables most warnings from the `GCC' back end. The
| code generator detects a number of warning situations that are
| missed by the `GNAT' front end, and this switch can be used to
| activate them. The use of this switch also sets the default front
| end warning mode to `-gnatwa', that is, most front end warnings
| activated as well.
So looks like it can make sense to use -Wall even with GNAT, but I
don't depend on it. I'll just go with -gnatwa for now.
--
Jan Andres <J@nAndr.es>
prev parent reply other threads:[~2011-12-28 17:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-28 14:37 Strange GNAT compiler warning Jan Andres
2011-12-28 16:49 ` Georg Bauhaus
2011-12-28 17:47 ` Jan Andres [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox