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!fdn.fr!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 09:50:03 +0200 Organization: Ada At Home Message-ID: References: <7987b9a7-b5ad-4e09-af7e-92734e551c48@f13g2000vbm.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:12108 Date: 2010-05-28T09:50:03+02:00 List-Id: Le Fri, 28 May 2010 09:34:48 +0200, Alexandre K = a =C3=A9crit: > Hi, > I am having trouble with Spark and pragma. If I am not wrong, Spark > accepts all pragmas and generate warning when we run the examiner. In > order than the examiner succeeds, we can tell in the warning control > file that we want to accept some or all pragma, with "pragma all". > Basically, I added a pragma Style_Checks ("-s", Off) in the beginning > of the package body. > When I run the examiner without warning control, it results a warning > about this pragma and another as a consequence : > > Warning 430 - SLI generation abandoned owing to syntax or semantic > errors or multiple units in a single source file. > > If run the examiner with the warning control, the warning message is > resumed, but the warning > > Warning 430 - SLI generation abandoned owing to syntax or semantic > errors or multiple units in a single source file. > > still exists and there is no other warning or error. > I can't understand why. > > Any idea ? > Thanks Hi Alex, I've just tried the same as you did, a =E2=80=9Cpragma Style_Checks ("-s= ", Off);=E2=80=9D = at the start of a package body, and could only get the classic warning, = = not the one about SLI generation. Additionally, I could not find any = reference to a Warning 430 in the Examiner_UM documentation. Warning cod= es = exposed there stop at Warning 420, no code beyond. If this is not private stuff, can you post your body file here ? Another mention required: SPARK GPL or SPARK Pro ? They may not be the = same... (I only have SPARK GPL in hands) Cheers -- = 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.