aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/switch-c.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2010-10-26 15:00:05 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2010-10-26 15:00:05 +0200
commit880dabb586a7da7a9198319daef82bf87df7422c (patch)
treea00f59d391906e9e2674b5607e6baf48f833deec /gcc/ada/switch-c.adb
parent392314047357798f0dffb3e5582f890489a3204f (diff)
downloadgcc-880dabb586a7da7a9198319daef82bf87df7422c.zip
gcc-880dabb586a7da7a9198319daef82bf87df7422c.tar.gz
gcc-880dabb586a7da7a9198319daef82bf87df7422c.tar.bz2
[multiple changes]
2010-10-26 Robert Dewar <dewar@adacore.com> * opt.ads: Comment fix. * sem_cat.adb: Treat categorization errors as warnings in GNAT Mode. * switch-c.adb: GNAT Mode does not set Treat_Categorization_Errors_As_Warnings. 2010-10-26 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve warning when an operator renames another one with a different name. 2010-10-26 Thomas Quinot <quinot@adacore.com> * exp_ch4.adb, exp_pakd.adb: Minor reformatting. From-SVN: r165956
Diffstat (limited to 'gcc/ada/switch-c.adb')
-rw-r--r--gcc/ada/switch-c.adb10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/ada/switch-c.adb b/gcc/ada/switch-c.adb
index a1919e9..a4423dc 100644
--- a/gcc/ada/switch-c.adb
+++ b/gcc/ada/switch-c.adb
@@ -567,16 +567,6 @@ package body Switch.C is
Set_GNAT_Mode_Warnings;
Set_GNAT_Style_Check_Options;
- -- Suppress categorization errors. The run-time has several
- -- instances of violations of the categorization errors (e.g.
- -- Pure units withing Preelaborate units. These violations are
- -- harmless in the cases where we intend them, and we suppress
- -- the warnings with Warnings (Off). In cases where we do not
- -- intend the violation, warnings are errors in -gnatg mode
- -- anyway, so we will still get an error.
-
- Treat_Categorization_Errors_As_Warnings := True;
-
-- Processing for G switch
when 'G' =>