From f991bd8ec959efdc59d8eeafb72a9a8589774a8c Mon Sep 17 00:00:00 2001 From: Hristian Kirtchev Date: Mon, 23 Jan 2017 11:21:37 +0000 Subject: sem_ch3.adb, [...]: Minor reformatting. 2017-01-23 Hristian Kirtchev * 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 * 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 --- gcc/ada/sem_warn.adb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/ada/sem_warn.adb') 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 -- cgit v1.1