From: Victor Porton <porton@narod.ru>
Subject: Wrong GNAT warning. How to suppress it?
Date: Sat, 25 Nov 2017 20:03:14 +0200
Date: 2017-11-25T20:03:14+02:00 [thread overview]
Message-ID: <ovcb98$1a93$1@gioia.aioe.org> (raw)
How to eliminate the GNAT warning in the below program?
$ gcc-7 -c main.adb
main.adb:13:05: warning: "return" statement missing following this statement
main.adb:13:05: warning: Program_Error may be raised at run time
procedure Main is
procedure My_Raise is
begin
raise Constraint_Error;
end;
function F (I: Integer) return Integer is
begin
if I = 0 then
return 1;
end if;
My_Raise;
end;
begin
null;
end;
--
Victor Porton - http://portonvictor.org
next reply other threads:[~2017-11-25 18:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-25 18:03 Victor Porton [this message]
2017-11-25 18:09 ` Wrong GNAT warning. How to suppress it? Pascal Obry
2017-11-25 18:27 ` Victor Porton
2017-11-25 19:03 ` Pascal Obry
2017-11-26 19:31 ` Robert Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox