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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,948a713d359c45ab,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!k37g2000hsf.googlegroups.com!not-for-mail From: mockturtle Newsgroups: comp.lang.ada Subject: How do I turn off this warning? Date: Tue, 22 Jul 2008 13:07:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2a475055-3869-47fd-a228-3eb749286e26@k37g2000hsf.googlegroups.com> NNTP-Posting-Host: 62.101.126.216 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1216757276 21942 127.0.0.1 (22 Jul 2008 20:07:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 22 Jul 2008 20:07:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k37g2000hsf.googlegroups.com; posting-host=62.101.126.216; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.27 (X11; Linux i686; U; en),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1255 Date: 2008-07-22T13:07:55-07:00 List-Id: Hi there, I have the following almost-essential code ------------------------------------------------- with System; package V is type Unsigned_2 is mod 2**2; type Unsigned_5 is mod 2**2; type T1 is record Version : Unsigned_2; Inline : Boolean; Command : Unsigned_5; end record; for T1'Bit_Order use System.High_Order_First; for T1 use record Version at 0 range 0..1; Inline at 0 range 2..2; Command at 0 range 3..7; end record; end V; ------------------------------------------------- If I try to compile it with "gnatmake" I obtain the following list of warnings v.ads:17:29: warning: reverse bit order in machine scalar of length 8 v.ads:17:29: warning: little-endian range for component "Version" is 6 .. 7 v.ads:18:29: warning: reverse bit order in machine scalar of length 8 v.ads:18:29: warning: little-endian range for component "Inline" is 5 .. 5 v.ads:19:29: warning: reverse bit order in machine scalar of length 8 v.ads:19:29: warning: little-endian range for component "Command" is 0 .. 4 I understand that with for T1'Bit_Order use System.High_Order_First; I am requesting the opposite convention of the "natural" one of my architecture (Linux on Intel), but I am aware of it and I need it to match the order in the packets I want to process. I am getting sick of those warnings and I would like to say to the compiler "Thank you for your help, but I know what I am doing, so shut up." I tried to look at the option list you get by calling "gnatmake" by itself and also "-gnatwA" (turn off all optional warning), but with no luck. Any idea?