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-Thread: 103376,47126baa34d467b6 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Pragma Suppress for Bit_Order warnings Date: Sun, 08 Jul 2007 18:11:53 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1183912282.706163.96770@r34g2000hsd.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1183932713 23368 192.74.137.71 (8 Jul 2007 22:11:53 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 8 Jul 2007 22:11:53 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:jtrimi10NzlX+qQoHmHUDLCYfY8= Xref: g2news1.google.com comp.lang.ada:16430 Date: 2007-07-08T18:11:53-04:00 List-Id: 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