diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-09-02 11:22:16 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-09-02 11:22:16 +0200 |
commit | 67c861780f945ca79a8d6d5bf7cb8d3c22fc7f74 (patch) | |
tree | 4459b4c7195e54733ab438adc02e57d4a9026f80 /gcc/ada/opt.ads | |
parent | 5415acbd64a2d286fae516cad1733bbf977a9a1f (diff) | |
download | gcc-67c861780f945ca79a8d6d5bf7cb8d3c22fc7f74.zip gcc-67c861780f945ca79a8d6d5bf7cb8d3c22fc7f74.tar.gz gcc-67c861780f945ca79a8d6d5bf7cb8d3c22fc7f74.tar.bz2 |
[multiple changes]
2011-09-02 Robert Dewar <dewar@adacore.com>
* prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
2011-09-02 Thomas Quinot <quinot@adacore.com>
* sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
Guard against a prefix that is an N_Has_Entity but has no
associated entity.
2011-09-02 Yannick Moy <moy@adacore.com>
* lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
references.
2011-09-02 Yannick Moy <moy@adacore.com>
* opt.ads (Warn_On_Suspicious_Contract): New warning flag.
* sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
contracts.
* sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
procedure looking for suspicious postconditions.
* usage.adb (Usage): New options -gnatw.t and -gnatw.T.
* warnsw.adb (Set_Dot_Warning_Switch): Take into account new
options -gnatw.t and -gnatw.T.
From-SVN: r178448
Diffstat (limited to 'gcc/ada/opt.ads')
-rw-r--r-- | gcc/ada/opt.ads | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads index d2874d4..9e4ee4a 100644 --- a/gcc/ada/opt.ads +++ b/gcc/ada/opt.ads @@ -1550,6 +1550,12 @@ package Opt is -- clauses that are affected by non-standard bit-order. The default is -- that this warning is enabled. + Warn_On_Suspicious_Contract : Boolean := True; + -- GNAT + -- Set to True to generate warnings for suspicious contracts expressed as + -- pragmas or aspects precondition and postcondition. The default is that + -- this warning is enabled. + Warn_On_Suspicious_Modulus_Value : Boolean := True; -- GNAT -- Set to True to generate warnings for suspicious modulus values. The |