diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-07-13 14:24:23 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-07-13 14:24:23 +0200 |
commit | 7b00e31d1e201bdc2fb6518b8866bb0851261c7b (patch) | |
tree | 19c848f498fd1aeb18d050c15ec9536a48e2a910 /gcc/ada/prj-err.adb | |
parent | 0e41a941ee11651b5805c730d2675902d64577aa (diff) | |
download | gcc-7b00e31d1e201bdc2fb6518b8866bb0851261c7b.zip gcc-7b00e31d1e201bdc2fb6518b8866bb0851261c7b.tar.gz gcc-7b00e31d1e201bdc2fb6518b8866bb0851261c7b.tar.bz2 |
[multiple changes]
2009-07-13 Robert Dewar <dewar@adacore.com>
* prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
prj-strt.ads: Minor reformatting
2009-07-13 Thomas Quinot <quinot@adacore.com>
* exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
set the type of the From_Any call to the base type.
2009-07-13 Doug Rupp <rupp@adacore.com>
* symbols-processing-vms-ia64.adb (Process): Add variables and
constants to retrieve and check for symbol visibility.
2009-07-13 Javier Miranda <miranda@adacore.com>
* exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
the identical type we remove the conversion completely because
it is useless.
From-SVN: r149575
Diffstat (limited to 'gcc/ada/prj-err.adb')
-rw-r--r-- | gcc/ada/prj-err.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/prj-err.adb b/gcc/ada/prj-err.adb index c0fa09b..8e0d562 100644 --- a/gcc/ada/prj-err.adb +++ b/gcc/ada/prj-err.adb @@ -99,9 +99,11 @@ package body Prj.Err is end if; if Real_Location = No_Location then + -- If still null, we are parsing a project that was created in-memory -- so we shouldn't report errors for projects that the user has no -- access to in any case. + return; end if; @@ -115,7 +117,7 @@ package body Prj.Err is if Flags.Report_Error /= null then Flags.Report_Error (Project, - Is_Warning => Msg (Msg'First) = '?' or Msg (Msg'First) = '<'); + Is_Warning => Msg (Msg'First) = '?' or else Msg (Msg'First) = '<'); end if; end Error_Msg; |