From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: AUnit Examples Fail
Date: Sun, 15 Aug 2010 06:34:56 +0200
Date: 2010-08-15T06:34:56+02:00 [thread overview]
Message-ID: <op.vhgpoixaule2fv@garhos> (raw)
In-Reply-To: 2010081422160335270-rblove@airmailnet
Le Sun, 15 Aug 2010 05:16:03 +0200, R.B. Love <rblove@airmail.net> a écrit:
> math-test.adb:20:07: warning: call to obsolescent procedure "Assert"
> declared at aunit-assertions.ads:113
> gprbuild: *** compilation phase failed
> make: *** [all] Error 4
This is a GNAT 2010 issue. Open the GPR files and change any “-gnatwe” you
see into “-gnatw” and any “-gnatw.Xe” into “-gnatw.X”.
Basically, the project files were configured so that all warnings are
treated as error. As you see, there are warnings during the build process.
As this warnings are treated as error, this ends up in a failed
compilation process.
Turning “-gnatwe” into “-gnatw” as an example, you will turn off the
option “Treat Warnings as Errors”.
This should solve the trick.
Probably the example cases makes some reference to some source using
obsolescent feature and the source in the example cases were not updated.
--
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.
next prev parent reply other threads:[~2010-08-15 4:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-15 3:16 AUnit Examples Fail R.B. Love
2010-08-15 4:34 ` Yannick Duchêne (Hibou57) [this message]
2010-08-15 12:00 ` Simon Wright
2010-08-15 13:54 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox