comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Remove un-necessary "with" and "use"
Date: Mon, 07 Apr 2014 07:21:39 +0100
Date: 2014-04-07T07:21:39+01:00	[thread overview]
Message-ID: <lyfvlpwtfw.fsf@pushface.org> (raw)
In-Reply-To: 76e9bc08-2632-4e3a-b75d-abf3ad18ce40@googlegroups.com

dontspam365@gmail.com writes:

> Is there a way to remove/get warning about "with" and possibly "use"
> that are not "contributing to the executable", via GPS 5.2.1 or
> possibly some of the GNAT tools?

If you want to get the warning so that you can remove (or move) the
"with"s, then -gnatwu will do the trick.

If you want most standard warnings, -gnatwa does it. If you want most
standard warnings but not unused "withs", use -gnatwaU.

Or you could say

   pragma Warnings (Off);
   with Unused_Package;
   pragma Warnings (On);

in the code.


  parent reply	other threads:[~2014-04-07  6:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-06 20:56 Remove un-necessary "with" and "use" dontspam365
2014-04-06 23:09 ` Jeffrey Carter
2014-04-07  6:23   ` Simon Wright
2014-04-07  4:51 ` J-P. Rosen
2014-04-07  6:21 ` Simon Wright [this message]
2014-04-07 21:08   ` dontspam365
replies disabled

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