From: Justin Gombos <spam.free@user.nil>
Subject: Re: Avoiding warnings
Date: Mon, 20 Feb 2006 13:51:40 GMT
Date: 2006-02-20T13:51:40+00:00 [thread overview]
Message-ID: <MPjKf.5176$HU.1412@trnddc04> (raw)
In-Reply-To: 1140429906.386023.136460@f14g2000cwb.googlegroups.com
> When I compile the source, the GNAT compiler gives me the next warning:
>
> warning: condition is always True
>
> How can I avoid this warning?
GNAT has a non-Ada pragma to turn warnings off. I believe you would
code it like this:
> procedure p1(..)
> begin
> ...
pragma Warnings(off);
> if Standard'Default_Bit_Order=1 then
pragma Warnings(on);
> ...
> else
> ...
> end p1;
next prev parent reply other threads:[~2006-02-20 13:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 10:05 Avoiding warnings ada_wannabe
2006-02-20 13:51 ` Justin Gombos [this message]
2006-02-21 21:32 ` Simon Wright
2006-02-22 22:45 ` Stephen Leake
2006-02-23 20:05 ` Simon Wright
2006-03-04 1:25 ` Brian.Gaffney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox