comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Ada.Containers warnings with gnat
Date: Sat, 15 Nov 2014 11:01:17 -0700
Date: 2014-11-15T11:01:17-07:00	[thread overview]
Message-ID: <m484d2$ncu$3@dont-email.me> (raw)
In-Reply-To: <m47o94$cnv$1@dont-email.me>

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.

-- 
Jeff Carter
"Gentlemen, you can't fight in here. This is the War Room!"
Dr. Strangelove
30


  parent reply	other threads:[~2014-11-15 18:01 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 [this message]
2014-11-16 10:05   ` Björn Lundin
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