diff options
author | Hristian Kirtchev <kirtchev@adacore.com> | 2017-01-23 11:21:37 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-01-23 12:21:37 +0100 |
commit | f991bd8ec959efdc59d8eeafb72a9a8589774a8c (patch) | |
tree | 35d5b222fa688d7fd75383231d62a5ad3002f578 /gcc/ada/sem_warn.adb | |
parent | d553a695b917d3240fcf8ca5ea9e09ad8dd8a5f3 (diff) | |
download | gcc-f991bd8ec959efdc59d8eeafb72a9a8589774a8c.zip gcc-f991bd8ec959efdc59d8eeafb72a9a8589774a8c.tar.gz gcc-f991bd8ec959efdc59d8eeafb72a9a8589774a8c.tar.bz2 |
sem_ch3.adb, [...]: Minor reformatting.
2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch3.adb, exp_spark.adb, exp_attr.adb, sem_ch9.adb, sem_prag.adb,
sem_util.adb, sem_warn.adb, exp_ch3.adb: Minor reformatting.
2017-01-23 Hristian Kirtchev <kirtchev@adacore.com>
* freeze.adb (Freeze_Subprogram): Ensure that all anonymous
access-to-subprogram types inherit the convention of the
associated subprogram. (Set_Profile_Convention): New routine.
* sem_ch6.adb (Check_Conformance): Do not compare the conventions
of the two entities directly, use Conventions_Match to account
for anonymous access-to-subprogram and subprogram types.
(Conventions_Match): New routine.
From-SVN: r244778
Diffstat (limited to 'gcc/ada/sem_warn.adb')
-rw-r--r-- | gcc/ada/sem_warn.adb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/sem_warn.adb b/gcc/ada/sem_warn.adb index ad278e8..29bdfd4 100644 --- a/gcc/ada/sem_warn.adb +++ b/gcc/ada/sem_warn.adb @@ -4336,12 +4336,12 @@ package body Sem_Warn is -- Give appropriate message, distinguishing between -- assignment statements and out parameters. - if Nkind_In (Parent (LA), N_Procedure_Call_Statement, - N_Parameter_Association) + if Nkind_In (Parent (LA), N_Parameter_Association, + N_Procedure_Call_Statement) then Error_Msg_NE - ("?m?& modified by call, but value might not " - & "be referenced", LA, Ent); + ("?m?& modified by call, but value might not be " + & "referenced", LA, Ent); else Error_Msg_NE -- CODEFIX |