comp.lang.ada
 help / color / mirror / Atom feed
From: stevenselectronicmail@gmail.com
Subject: Re: Hint to Ada newbies
Date: Sat, 11 Feb 2017 09:40:38 -0800 (PST)
Date: 2017-02-11T09:40:38-08:00	[thread overview]
Message-ID: <da398cb0-9643-4f66-a01a-78a63eb884db@googlegroups.com> (raw)
In-Reply-To: <a1dfb7fc-1cca-4d6b-abf2-8b2acb3e3215@googlegroups.com>

On Wednesday, February 8, 2017 at 8:17:45 PM UTC-8, reinkor wrote:
> Just sharing experience:
> 
> I tried gnat compiler option "-gnatwa" and revealed a lot of weakness in my Ada project. It also helped to improve the structure of the code which I have worked on and modified over time.
> 
> Just a hint to newbies :-)
> 
> https://gcc.gnu.org/onlinedocs/gnat_ugn/Warning-Message-Control.html
> 
> reinert

I prefer using pragmas for these.

pragma Initialize_Scalars;
pragma Assertion_Policy (CHECK);
pragma Debug_Policy (CHECK);
pragma Check_Float_Overflow;
pragma Overflow_Mode (Strict);
pragma Unsuppress (Overflow_Check);
pragma Validity_Checks (ALL_CHECKS);

pragma Prefix_Exception_Messages;

pragma Style_Checks (On);
pragma Style_Checks ("3aAbCdefiIklnprsStu");

pragma Warnings (On);
pragma Warnings ("ah.i.ktFK");


      parent reply	other threads:[~2017-02-11 17:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09  4:17 Hint to Ada newbies reinkor
2017-02-09  6:06 ` Per Sandberg
2017-02-09  8:02   ` Simon Wright
2017-02-09 23:12     ` Robert A Duff
2017-02-10  9:22       ` Dmitry A. Kazakov
2017-02-11  9:16         ` Hadrien Grasland
2017-02-11  9:39           ` Dmitry A. Kazakov
2017-02-10  9:56       ` Simon Wright
2017-02-11  9:25         ` Hadrien Grasland
2017-02-09  9:26   ` reinkor
2017-02-09 17:40   ` John Smith
2017-02-11 17:40 ` stevenselectronicmail [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