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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,43b885d6e21060c4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-28 22:32:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Gnat: silly warning - how to eliminate? Date: 29 Jan 2003 06:31:08 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <3e347fa7$0$33928$bed64819@news.gradwell.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1043821925 27134 62.49.19.209 (29 Jan 2003 06:32:05 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 29 Jan 2003 06:32:05 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:33535 Date: 2003-01-29T06:31:08+00:00 List-Id: porton@ex-code.com (Victor Porton) writes: > I declare a procedure in a _package body_ only for internal use: > > procedure Get_Element renames Element; > -- to eliminate glitch with formal parameter names > > Gnat 3.14p gives warning: > warning: not dispatching (must be defined in a package spec) > > How to eliminate this silly warning (to not pollute the compiler > output) without turning off all warnings? (Yes, I readied RTFM.) pragma Warnings (Off, Get_Element); ??? And it wouldn't be silly if you had been expecting it to dispatch, would it?