comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus.rm.tsoh@maps.futureapps.de>
Subject: Re: Pragma Suppress for Bit_Order warnings
Date: Mon, 09 Jul 2007 10:42:57 +0200
Date: 2007-07-09T10:39:22+02:00	[thread overview]
Message-ID: <4691f43a$0$31623$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <wccsl7y35qu.fsf@shell01.TheWorld.com>

Robert A Duff wrote:
>   To
> suppress warnings, use pragma Warnings.  There are many useful options
> -- look it up in the docs.  There are also command-line switches
> to control warnings.
> 

Command-line switches for controlling compiler warnings seems
a better approach than placing compiler specific pragmas in
an Ada program: When a pragma is implementation specific, it is
effectively adding more warnings when a different compiler is
used, or even when a different edition of the same compiler is
used. This compiler (edition) may have different implementation
defined pragma characteristics. Another compiler might translate
the program but it will also warn about unsupported/differently
supported pragmas.
The very effect the author had intended to suppress, originally!

Another option is to use good IDEs and/or SCM providing diagnostic
message filters. For a start, grep/findstr will serve this purpose
in most PCs/workstations under the sun :-) Adjusting Emacs message
filters is fairly easy; I suppose that GPS's output listings
can be programmed in a similar fashion.

(Some pragmas effectively turn a simple Ada program into a
non-portable program (a vendor and OS lock, perhaps unintented),
e.g. those that say in source which link libraries to use
and how.)



-- Georg



      parent reply	other threads:[~2007-07-09  8:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08 16:31 Pragma Suppress for Bit_Order warnings richtmyer
2007-07-08 22:11 ` Robert A Duff
2007-07-09  1:05   ` richtmyer
2007-07-09  8:42   ` 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