From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Pragma Suppress for Bit_Order warnings
Date: Sun, 08 Jul 2007 18:11:53 -0400
Date: 2007-07-08T18:11:53-04:00 [thread overview]
Message-ID: <wccsl7y35qu.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1183912282.706163.96770@r34g2000hsd.googlegroups.com
richtmyer@cox.net writes:
> The Gnat RM (section 6.8) states:
>
> "Since the misconception that Bit_Order automatically deals with
> all endian-related incompatibilities is a common one, the
> specification of a component field that is an integral number of bytes
> will always generate a warning. This warning may be suppressed using
> pragma Suppress if desired."
>
> I have coded:
>
> for Data'Bit_Order use High_Order_First;
> pragma suppress (xxx);
>
> and I get two warning lines for each bit definition. What is the "xxx"
> I need to suppress the compiler warnings?
I think that's a bug in the documentation. Pragma Suppress has nothing
to do with suppressing warnings -- it suppresses run-time checks. To
suppress warnings, use pragma Warnings. There are many useful options
-- look it up in the docs. There are also command-line switches
to control warnings.
- Bob
next prev parent reply other threads:[~2007-07-08 22:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-08 16:31 Pragma Suppress for Bit_Order warnings richtmyer
2007-07-08 22:11 ` Robert A Duff [this message]
2007-07-09 1:05 ` richtmyer
2007-07-09 8:42 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox