comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.tsoh.plus-bug.bauhaus@maps.futureapps.de>
Subject: renaming function result object inside loop
Date: Sat, 05 Sep 2009 19:42:05 +0200
Date: 2009-09-05T19:42:06+02:00	[thread overview]
Message-ID: <4aa2a2ed$0$32665$9b4e6d93@newsspool2.arcor-online.net> (raw)

Is the following a spurious warning?

   528.          loop
   529.             declare
   530.                Line : String renames LIO.Get_Line; --!
                                                |
        >>> warning: renaming function result object is suspicious
        >>> warning: function "Get_Line" will be called only once
        >>> warning: suggest using an initialized constant object instead

(Get_Line in fact seems to be called each time around the loop.)



             reply	other threads:[~2009-09-05 17:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-05 17:42 Georg Bauhaus [this message]
     [not found] ` <gpidncZaHuLEXT_XnZ2dnUVZ_j-dnZ2d@earthlink.com>
2009-09-05 20:27   ` renaming function result object inside loop Georg Bauhaus
2009-09-06 11:06 ` Oliver Kellogg
2009-09-06 16:03 ` Robert A Duff
2009-09-06 20:09   ` Georg Bauhaus
replies disabled

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