From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Ada.Containers warnings with gnat
Date: Sun, 16 Nov 2014 11:05:00 +0100
Date: 2014-11-16T11:05:00+01:00 [thread overview]
Message-ID: <m49spm$n8t$1@dont-email.me> (raw)
In-Reply-To: <m484d2$ncu$3@dont-email.me>
On 2014-11-15 19:01, Jeffrey Carter wrote:
> On 11/15/2014 07:35 AM, Björn Lundin wrote:
>>
>>
>> The simulator was in a single file before -> no problem.
>> So I then refactored and created a storage package and suddenly I get
>> warnings like
>>
>> /home/bnl/bnlbot/botstart/bot-1-0/source/ada/local/utils/simulation_storage.ads
>> 17. package Sample_Map_Pack is new Ada.Containers.Ordered_Maps
>> |
>> >>> warning: in instantiation at a-coorma.ads:266
>> >>> warning: no entities of package "Ada.Streams" are referenced
>>
>> 23. package Marketid_Map_Pack is new Ada.Containers.Hashed_Maps
>> |
>> >>> warning: in instantiation at a-cohama.ads:342
>> >>> warning: no entities of package "Ada.Streams" are referenced
>>
>> 30. package Winner_Map_Pack is new Ada.Containers.Hashed_Maps
>> |
>> >>> warning: in instantiation at a-cohama.ads:342
>> >>> warning: no entities of package "Ada.Streams" are referenced
>>
>> 37. package Win_Place_Map_Pack is new Ada.Containers.Hashed_Maps
>> |
>> >>> warning: in instantiation at a-cohama.ads:342
>> >>> warning: no entities of package "Ada.Streams" are referenced
>
> Did you change your compiler options? It appears that the compiler's
> implementations of these standard pkgs with Ada.Streams but never reference it,
> and that you're compiling with warnings of unreferenced things turned on.
>
No, I did not. I just put the code into a package instead. That's it.
And I have never seen these kind of warnings on compiler/language
packages. It is like it recompiles them.
--
Björn
next prev parent reply other threads:[~2014-11-16 10:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-15 14:35 Ada.Containers warnings with gnat Björn Lundin
2014-11-15 15:15 ` Björn Lundin
2014-11-15 18:01 ` Jeffrey Carter
2014-11-16 10:05 ` Björn Lundin [this message]
2014-11-16 11:37 ` Björn Lundin
2014-11-16 17:32 ` Jeffrey Carter
2014-11-17 8:13 ` Björn Lundin
2014-11-17 16:39 ` Anh Vo
2014-11-17 17:27 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox