comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: strange warning: "return" statement missing following?
Date: Fri, 26 Jan 2007 20:53:36 +0100
Date: 2007-01-26T20:53:36+01:00	[thread overview]
Message-ID: <1169841216.9913.2.camel@localhost> (raw)
In-Reply-To: <pan.2007.01.21.09.01.49.711806@snafu.de>

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

On Sun, 2007-01-21 at 10:01 +0100, GNADE proejct account wrote:
> Dear all,
> 
> when i am compiling my code, i get the following error:
> 
> cache.adb:82:04: warning: in instantiation at
> util-dynamic_hashtable.adb:310 cache.adb:82:04: warning: "return"
> statement missing following this statement cache.adb:82:04: warning:
> Program_Error may be raised at run time
> 
> the offending lines in util-dynamic_hash.adb are:
> 
>    function Get_Root(                                 <--- Line 310
>       This : in Object ) return Key_List_Access is Data :
>       Object_Data_Access renames This.Data; I    : Iterator_Type ;
>    begin
>       I.Reset( Get( Data.Root ) );
> 
>       return I.First;
>    end Get_Root ;
> 
> I have no idea what the compiler is complaining about! Any Idea?
> 

The reason for the compiler message appear to have to do
with the Iterator_Type being protected.

When I changed it to be just limited in a local copy,
and modified the protected subprograms accordingly,
a small test program compiles and runs as expected
(I think). Both changes and test file are on the way via
private email.

 -- Georg 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

      parent reply	other threads:[~2007-01-26 19:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-21  9:01 strange warning: "return" statement missing following? GNADE proejct account
2007-01-22  9:06 ` Stuart
2007-01-23  7:12 ` Stephen Leake
2007-01-23 16:57   ` Adam Beneschan
2007-01-26 16:14   ` GNADE proejct account
2007-01-26 19:53 ` Georg Bauhaus [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