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,FREEMAIL_FROM autolearn=ham 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,UTF8 Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Spark, pragma Date: Fri, 28 May 2010 11:26:26 +0200 Organization: Ada At Home Message-ID: References: <7987b9a7-b5ad-4e09-af7e-92734e551c48@f13g2000vbm.googlegroups.com> <9df19165-c809-48e5-b14b-b69f8af64e87@c13g2000vbr.googlegroups.com> NNTP-Posting-Host: GzQnrNzaoPGtXNRJOLsqnw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:12113 Date: 2010-05-28T11:26:26+02:00 List-Id: Le Fri, 28 May 2010 11:08:37 +0200, Alexandre K = a =C3=A9crit: > 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 = declaration for all subprograms. This is unlikely to cause a trouble wit= h = SPARK, even if your version was able to make special handling of these = 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 o= f = this pragma is a literal, which is a letter, followed by an option On of= = Off. Here, you have "-s". Shouldn't this be "s" instead ? May be worth to try. -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.