comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: How do I turn off this warning?
Date: Wed, 23 Jul 2008 21:23:56 +0100
Date: 2008-07-23T21:23:56+01:00	[thread overview]
Message-ID: <m2d4l4xsbn.fsf@mac.com> (raw)
In-Reply-To: Pine.LNX.4.64.0807231318390.21186@medsec1.medien.uni-weimar.de

stefan-lucks@see-the.signature writes:

> Try "pragma Warnings (off, <warning message>);". 

Possibly overkill in this case; there are 3 lines of code giving 6
warnings (4 unique ones). And you have to turn them on again, or you get
a warning about that too. And (GCC 4.3.0) they don't actually get turned
off unless you do supply the matching On!

   for T1 use
      record
         pragma Warnings
           (Off, "reverse bit order in machine scalar of length 8");
         pragma Warnings
           (Off, "little-endian range for component ""Version"" is 6 .. 7");
         Version at 0 range 0..1;
         pragma Warnings
           (On, "little-endian range for component ""Version"" is 6 .. 7");
         pragma Warnings
           (Off, "little-endian range for component ""Inline"" is 5 .. 5");
         Inline  at 0 range 2..2;
         pragma Warnings
           (On, "little-endian range for component ""Inline"" is 5 .. 5");
         pragma Warnings
           (Off, "little-endian range for component ""Command"" is 0 .. 4");
         Command at 0 range 3..7;
         pragma Warnings
           (On, "little-endian range for component ""Command"" is 0 .. 4");
         pragma Warnings
           (On, "reverse bit order in machine scalar of length 8");
      end record;



      reply	other threads:[~2008-07-23 20:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 20:07 How do I turn off this warning? mockturtle
2008-07-22 20:34 ` Robert A Duff
2008-07-22 21:36 ` Simon Wright
2008-07-23 11:22 ` stefan-lucks
2008-07-23 20:23   ` 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