comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Gnat: silly warning - how to eliminate?
Date: 29 Jan 2003 06:31:08 +0000
Date: 2003-01-29T06:31:08+00:00	[thread overview]
Message-ID: <x7vu1fsmpqr.fsf@smaug.pushface.org> (raw)
In-Reply-To: 3e347fa7$0$33928$bed64819@news.gradwell.net

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?



      reply	other threads:[~2003-01-29  6:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-27  0:32 Gnat: silly warning - how to eliminate? Victor Porton
2003-01-29  6:31 ` Simon Wright [this message]
replies disabled

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