comp.lang.ada
 help / color / mirror / Atom feed
* How do I resolve SPARK warning "procedure [...] has no effect for output procedure
@ 2020-03-25 20:48 digitig
  2020-03-25 23:38 ` Anh Vo
  2020-03-26 12:04 ` Stephen Leake
  0 siblings, 2 replies; 9+ messages in thread
From: digitig @ 2020-03-25 20:48 UTC (permalink / raw)


I'm trying to learn SPARK Ada, and, among other things, I have a procedure that simply puts a standard message to the screen. SPARK gives me a warning that the subprogram has no effect; I can see why - it only has the side-effect of printing to the screen. Everything I can see online to deal with this is a) *very* old, and b) uses SPARK_Io, which I understand is obsolete (and which I can't find). So what is the best way to tell SPARK that the procedure just has that side effect? (Hopefully better than `SPARK_mode => Off').

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-27  0:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 20:48 How do I resolve SPARK warning "procedure [...] has no effect for output procedure digitig
2020-03-25 23:38 ` Anh Vo
2020-03-26  0:45   ` digitig
2020-03-26 10:02     ` Simon Wright
2020-03-26 11:56       ` digitig
2020-03-26 13:13         ` Egil H H
2020-03-27  0:05           ` digitig
2020-03-26 15:36         ` Simon Wright
2020-03-26 12:04 ` Stephen Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox