comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: Anybody using Adabroker with GNAT 3.3?
Date: 05 Jun 2004 07:44:18 -0400
Date: 2004-06-05T07:44:18-04:00	[thread overview]
Message-ID: <mailman.45.1086435875.391.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <a5awc.21913$Tn6.19545@newsread1.news.pas.earthlink.net>

Bruce Conroy <bruceconroy@earthlink.net> writes:

> 2) it also gives nonsenseical error messages when I
> try to install it. The fragment
> 
>                        declare
>                            Ok : constant Boolean
>                              := Add_Identifier (Result, Get_Token_String);
>                            pragma Warnings (Off);
>                            pragma Unreferenced (Ok);
>                            pragma Warnings (On);

This is bizarre code. I would delete the two Warnings pragmas

>                            --  here, the addentifier is really added only if
>                            --  we're not in the case where the module name
>                            --  was already defined
>                         begin
>                            Set_Default_Repository_Id (Result);
>                            Set_Initial_Current_Prefix (Result);
>                         end;
> 
> aborts the make stage with the warning Ok not referenced (when
> it clearly is.)

The semantics of Unreferenced changed from GNAT 3.15 to GNAT 5.01,
which is equivalent to gcc 3.3; it now means "not read". I think if
you delete the Warnings pragmas, this will compile.

> For what I want now, I'm going back to AdaBroker and Gnat 3.14p

always a choice.

-- 
-- Stephe




  parent reply	other threads:[~2004-06-05 11:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-04  1:18 Anybody using Adabroker with GNAT 3.3? Bruce Conroy
2004-06-04  5:18 ` Oliver Kellogg
2004-06-05  2:19   ` Bruce Conroy
2004-06-05  9:54     ` Jerome Hugues
2004-06-05 17:11       ` Bruce Conroy
2004-06-05 11:44     ` Stephen Leake [this message]
2004-06-05 17:36       ` Pascal Obry
replies disabled

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