From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Turning off "Unit xxx not referenced" warnings?
Date: Wed, 3 Nov 2004 00:54:50 +0000 (UTC)
Date: 2004-11-03T00:54:50+00:00 [thread overview]
Message-ID: <cm9a8q$idi$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: Jnwgd.10951$KJ6.7115@newsread1.news.pas.earthlink.net
Jeffrey Carter <spam@spam.com> wrote:
: A portable way is to mention each in a pragma Elaborate (or
: Elaborate_Body). That may be a good way to do it, since it emphasizes
: that they are there in order to be elaborated.
The portability gained cannot be stressed enough, I think. When
a pragma identifier is known by two compilers that expect a different
argument list, chances are that you can no longer compile programs using
one of the compilers. (Pragma Unsuppress is currently one of them, pragma
Linker_Options should IMHO immediately be rubbed out everywhere and
replaced with proper project configuration files or similar.)
Abandon portability just for the luxury of not seeing a particular
warning with some versions of one Ada compiler? (A compile log without
warnings isn't necessarily an indication of a correct program, is it?)
Georg
prev parent reply other threads:[~2004-11-03 0:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-29 9:51 Turning off "Unit xxx not referenced" warnings? ggroups
2004-10-29 10:54 ` Martin Dowie
2004-10-29 14:22 ` Nick Roberts
2004-10-29 17:47 ` Martin Dowie
2004-10-30 14:51 ` Simon Wright
2004-11-02 9:21 ` Alex R. Mosteo
2004-11-02 21:58 ` Simon Wright
2004-10-29 18:56 ` Jeffrey Carter
2004-11-03 0:54 ` Georg Bauhaus [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox