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,57b125b84ee7e254 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc04.POSTED!20ae255c!not-for-mail Newsgroups: comp.lang.ada From: Justin Gombos Subject: Re: Avoiding warnings References: <1140429906.386023.136460@f14g2000cwb.googlegroups.com> User-Agent: slrn/0.9.7.4 (Linux) Message-ID: Date: Mon, 20 Feb 2006 13:51:40 GMT NNTP-Posting-Host: 141.149.87.138 X-Complaints-To: abuse@verizon.net X-Trace: trnddc04 1140443500 141.149.87.138 (Mon, 20 Feb 2006 08:51:40 EST) NNTP-Posting-Date: Mon, 20 Feb 2006 08:51:40 EST Xref: g2news1.google.com comp.lang.ada:3013 Date: 2006-02-20T13:51:40+00:00 List-Id: > 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;