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: a07f3367d7,cb90b009d6b31cab X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!b21g2000vbh.googlegroups.com!not-for-mail From: Alexandre K Newsgroups: comp.lang.ada Subject: Re: Spark, pragma Date: Fri, 28 May 2010 02:54:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: <84190303-5d90-49fd-9297-07b07ee4ffb1@b21g2000vbh.googlegroups.com> References: <7987b9a7-b5ad-4e09-af7e-92734e551c48@f13g2000vbm.googlegroups.com> <9df19165-c809-48e5-b14b-b69f8af64e87@c13g2000vbr.googlegroups.com> NNTP-Posting-Host: 82.229.198.39 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1275040494 19176 127.0.0.1 (28 May 2010 09:54:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 28 May 2010 09:54:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b21g2000vbh.googlegroups.com; posting-host=82.229.198.39; posting-account=TcezFQoAAAAjIIx-1YP3Hv74ICh_b8qk User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (Macintosh; Intel Mac OS X; U; fr) Presto/2.2.15 Version/10.10,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:12116 Date: 2010-05-28T02:54:53-07:00 List-Id: On 28 mai, 11:26, Yannick Duch=EAne (Hibou57) wrote: > Le Fri, 28 May 2010 11:08:37 +0200, Alexandre K =A0 > a =E9crit:> But it exists in my manual, just= after warning 420, and this is the > > last one. (for me page 91) > > Maybe as you mentionned this is due to Spark version, as I am using > > Spark PRO v 9.0 with ada 2005 option. > > Ok, that is why: I have SPARK GPL 8.1.1 only. > > Well, the "s" style checks stands for requirement to have a separate =A0 > declaration for all subprograms. This is unlikely to cause a trouble with= =A0 > SPARK, even if your version was able to make special handling of these = =A0 > pragmas. > > Instead, I was thinking again at your OP: > > > Warning 430 - SLI generation abandoned owing to syntax or semantic > > errors or multiple units in a single source file. > > It talks among other things, about a syntax error. It seems the syntax of= =A0 > this pragma is a literal, which is a letter, followed by an option On of = =A0 > Off. Here, you have "-s". Shouldn't this be "s" instead ? > I don't think so. I realized that in my first message I have written "pragma Style_Checks ("s", Off)" which is incorrect in Ada. I would want to turn off the declaration for function used just in body. So yes I have to use "-s", "s" would let it on because of options used in compilation command line that make all style, warning etc as an error. It clearly works in Ada, it's just the examiner that reports this error. And if I comment the pragma, the examiner succeeds. Thanks for your advices. > May be worth to try. > > -- > There is even better than a pragma Assert: a SPARK --# check. > --# check C and WhoKnowWhat and YouKnowWho; > --# assert Ada; > -- =A0i.e. forget about previous premises which leads to conclusion > -- =A0and start with new conclusion as premise.