From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Ada.Containers warnings with gnat Date: Sat, 15 Nov 2014 11:01:17 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 15 Nov 2014 18:01:08 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="e1e8835fd7030ec2a5463beff662d0eb"; logging-data="23966"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Lb0D4NF6mGR1TYPIP/MtuJp4/FQ0A3dw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: Cancel-Lock: sha1:MWJqpY3iQaaYOg++jSt0TXSfxS8= Xref: news.eternal-september.org comp.lang.ada:23385 Date: 2014-11-15T11:01:17-07:00 List-Id: 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