comp.lang.ada
 help / color / mirror / Atom feed
From: BrianG <briang000@gmail.com>
Subject: Re: Make specific warning error with gnat?
Date: Sat, 03 Jul 2010 22:22:19 -0400
Date: 2010-07-03T22:22:19-04:00	[thread overview]
Message-ID: <i0or39$fsd$1@news.eternal-september.org> (raw)
In-Reply-To: <82aaq9xac8.fsf@stephe-leake.org>

Stephen Leake wrote:
> Markus Schoepflin <nospam@no.spam> writes:
>> Am 02.07.2010 11:30, schrieb Stephen Leake:
>>> Markus Schoepflin<nospam@no.spam>  writes:
>>> gnat is a very good compiler; the warnings it produces should be taken
>>> seriously.
>> I would love to, but I'm dealing with a multi-million LOC legacy code
>> base of Ada 83 in maintenance mode, which produces quite a large
>> number of warnings.
>>
>> I neither have the time nor the resources available to fix all of
>> them, nor am I allowed to do so. 
> 
> I can understand not changing design in a maintenance situation, but
> adding 'pragma Warnings (off)' in places ought to be ok. Still, it can
> be a lot of work.
> 
In many maintenance situations, _ANY_ source code change is an issue. 
The more files you change (in some situations the more lines you 
change), the greater the impact - on testing and on cost.  Adding 
pragmas throughout the code may be as large an impact as a 
moderate-to-large redesign.

Another GNAT warning I'd put in the same category is 'object XYZ is read 
but never written' (or something similar).  I saw this recently for a 
record type (defined in a different location), where all components have 
default value ... except for one which was added recently.



  reply	other threads:[~2010-07-04  2:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-01 10:13 Make specific warning error with gnat? Markus Schoepflin
2010-07-01 12:11 ` John B. Matthews
2010-07-01 14:05   ` Markus Schoepflin
2010-07-02  1:19     ` John B. Matthews
2010-07-02  9:30 ` Stephen Leake
2010-07-02  9:44   ` Markus Schoepflin
2010-07-02 20:17     ` Randy Brukardt
2010-07-06 21:18       ` Robert A Duff
2010-07-07 23:32         ` Randy Brukardt
2010-07-02 20:33     ` Georg Bauhaus
2010-07-03 10:00       ` Dmitry A. Kazakov
2010-07-05  8:16       ` Markus Schoepflin
2010-07-03  8:01     ` Stephen Leake
2010-07-04  2:22       ` BrianG [this message]
2010-07-06 21:12     ` Robert A Duff
replies disabled

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