* strange warning: "return" statement missing following?
@ 2007-01-21 9:01 GNADE proejct account
2007-01-22 9:06 ` Stuart
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: GNADE proejct account @ 2007-01-21 9:01 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: strange warning: "return" statement missing following?
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-26 19:53 ` Georg Bauhaus
2 siblings, 0 replies; 6+ messages in thread
From: Stuart @ 2007-01-22 9:06 UTC (permalink / raw)
"GNADE proejct account" <michael.erdmann@snafu.de> wrote in message
news:pan.2007.01.21.09.01.49.711806@snafu.de...
> Dear all,
>
> when i am compiling my code, i get the following error:
<snip error message and code snippet>
> I have no idea what the compiler is complaining about! Any Idea?
You have not included the declarations of the various types and objects used
in your code. This makes it very difficult to replicate the problem and
provide you with help.
Perhaps you could repost a more complete code extract.
Regards
--
Stuart
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: strange warning: "return" statement missing following?
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
2 siblings, 2 replies; 6+ messages in thread
From: Stephen Leake @ 2007-01-23 7:12 UTC (permalink / raw)
GNADE proejct account <michael.erdmann@snafu.de> writes:
> 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:
What is in cache.adb:82 ?
It is odd to see two filenames on one line.
--
-- Stephe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: strange warning: "return" statement missing following?
2007-01-23 7:12 ` Stephen Leake
@ 2007-01-23 16:57 ` Adam Beneschan
2007-01-26 16:14 ` GNADE proejct account
1 sibling, 0 replies; 6+ messages in thread
From: Adam Beneschan @ 2007-01-23 16:57 UTC (permalink / raw)
Stephen Leake wrote:
> GNADE proejct account <michael.erdmann@snafu.de> writes:
>
> > 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:
>
> What is in cache.adb:82 ?
>
> It is odd to see two filenames on one line.
I think that the poster simply posted in a way that his posting
software decided to do a paragraph fill instead of respecting his line
breaks.
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
Does this make it clearer? (Assuming Google Groups hasn't sabotaged my
formatting.)
-- Adam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: strange warning: "return" statement missing following?
2007-01-23 7:12 ` Stephen Leake
2007-01-23 16:57 ` Adam Beneschan
@ 2007-01-26 16:14 ` GNADE proejct account
1 sibling, 0 replies; 6+ messages in thread
From: GNADE proejct account @ 2007-01-26 16:14 UTC (permalink / raw)
On Tue, 23 Jan 2007 02:12:14 -0500, Stephen Leake wrote:
> GNADE proejct account <michael.erdmann@snafu.de> writes:
>
>> 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:
>
> What is in cache.adb:82 ?
116 package Object_Table is
117 new Dynamic_Hashtable( Payload_Type => Cache_Entry_Access );
118 use Object_Table;
119
>
> It is odd to see two filenames on one line.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: strange warning: "return" statement missing following?
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-26 19:53 ` Georg Bauhaus
2 siblings, 0 replies; 6+ messages in thread
From: Georg Bauhaus @ 2007-01-26 19:53 UTC (permalink / raw)
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-01-26 19:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox