comp.lang.ada
 help / color / mirror / Atom feed
From: Warren <ve3wwg@gmail.com>
Subject: Re: X := X; Compiler Warning?
Date: Mon, 12 Apr 2010 17:39:49 +0000 (UTC)
Date: 2010-04-12T17:39:49+00:00	[thread overview]
Message-ID: <Xns9D588AFEC1672WarrensBlatherings@188.40.43.213> (raw)
In-Reply-To: nospam-EBAEFB.12273312042010@news.aioe.org

John B. Matthews expounded in news:nospam-EBAEFB.12273312042010
@news.aioe.org:

> In article <Xns9D586C840409EWarrensBlatherings@188.40.43.213>,
>  Warren <ve3wwg@gmail.com> wrote:

>> Obviously, that should have been coded as:
>> 
>>     Position_X := Position_X + 1;

> Add "-gnatwXX" to your "-cargs" in gnatmake, where XX is among these
> 
> <http://gcc.gnu.org/onlinedocs/gcc-4.4.3/gnat_ugn_unw/
> Warning-Message-Control.html#Warning-Message-Control>
> 
> For example, -gnatwr yields
> 
> warning: useless assignment of "Position_X" to itself

Excellent, thanks.

Warren



      reply	other threads:[~2010-04-12 17:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 14:40 X := X; Compiler Warning? Warren
2010-04-12 16:27 ` John B. Matthews
2010-04-12 17:39   ` Warren [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