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-Received: by 2002:ac8:1aed:: with SMTP id h42mr5750418qtk.43.1585179485415; Wed, 25 Mar 2020 16:38:05 -0700 (PDT) X-Received: by 2002:a9d:709a:: with SMTP id l26mr4186873otj.240.1585179485089; Wed, 25 Mar 2020 16:38:05 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 25 Mar 2020 16:38:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=149.32.224.35; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.35 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2cf70068-45e1-4e39-8ff4-3348f37e63fd@googlegroups.com> Subject: Re: How do I resolve SPARK warning "procedure [...] has no effect for output procedure From: Anh Vo Injection-Date: Wed, 25 Mar 2020 23:38:05 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:58245 Date: 2020-03-25T16:38:04-07:00 List-Id: On Wednesday, March 25, 2020 at 1:48:44 PM UTC-7, digitig wrote: <<< > I'm trying to learn SPARK Ada, and, among other things, I have a proc= edure that simply puts a standard message to the screen. SPARK gives me a w= arning that the subprogram has no effect; I can see why - it only has the s= ide-effect of printing to the screen. Everything I can see online to deal w= ith this is a) *very* old, and b) uses SPARK_Io, which I understand is obso= lete (and which I can't find). So what is the best way to tell SPARK that t= he procedure just has that side effect? (Hopefully better than `SPARK_mode = =3D> Off'). >>> Would you mind to post the source code and the warning message. So, every o= ne is at the page.