comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Make specific warning error with gnat?
Date: Thu, 01 Jul 2010 08:11:17 -0400
Date: 2010-07-01T08:11:17-04:00	[thread overview]
Message-ID: <nospam-4290E8.08111701072010@news.aioe.org> (raw)
In-Reply-To: i0hpoh$vmk$1@nntp.ilk.net

In article <i0hpoh$vmk$1@nntp.ilk.net>,
 Markus Schoepflin <nospam@no.spam> wrote:

> I seem to remember that with gnat it was possible to turn a specific 
> warning into an error. I couldn't find anything in the docs, now I'm not 
> sure if this really was gnat or some other compiler which offered this 
> feature.
> 
> Anyway, what I want is a compile time error for the warning 
> "Constraint_Error" will be raised at run time.
> 
> Is this possible with gnat without turning all warnings into errors?

You might be thinking of the -gnatwe option.

<http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gnat_ugn_unw/Warning-Message-Con
trol.html#Warning-Message-Control>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



  reply	other threads:[~2010-07-01 12:11 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 [this message]
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
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