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,d679dd7e9c16805a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!i20g2000prf.googlegroups.com!not-for-mail From: Michael Mounteney Newsgroups: comp.lang.ada Subject: Re: Selective suppression of warnings --- gnat on GNU/Linux Date: Tue, 30 Dec 2008 14:49:50 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <7a6baa71-80e8-4f3a-80b6-34935bda2fc0@r10g2000prf.googlegroups.com> <57b8ccae-e5b8-448e-a6d1-86145fc4d03c@s1g2000prg.googlegroups.com> NNTP-Posting-Host: 122.108.174.163 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1230677390 25445 127.0.0.1 (30 Dec 2008 22:49:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Dec 2008 22:49:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i20g2000prf.googlegroups.com; posting-host=122.108.174.163; posting-account=jBuPTAoAAABCn2rocutUgybAcLjD8f-Q User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4112 Date: 2008-12-30T14:49:50-08:00 List-Id: Thanks very much, Ludovic, that answer was just what I needed ! The warning count has decreased by about 80%. Bill: I take your point but I am trying to preserve semantic information the conversion. So I do want the types to be distinct. The Pascal source has been modified where necessary thus: dest := (*ada:typeofdest*)(expr); which the convertor sees as dest := typeofdest(expr); in order to maintain the distinction of types.