comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
Subject: Re: Wrong GNAT warning. How to suppress it?
Date: Sat, 25 Nov 2017 19:09:01 +0100
Date: 2017-11-25T19:09:01+01:00	[thread overview]
Message-ID: <1511633341.11548.10.camel@obry.net> (raw)
In-Reply-To: ovcb98$1a93$1@gioia.aioe.org

Le samedi 25 novembre 2017 à 20:03 +0200, Victor Porton a écrit :
> 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

  procedure My_Raise with No_Return is
  begin
    raise Constraint_Error;
  end;

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


  reply	other threads:[~2017-11-25 18:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-25 18:03 Wrong GNAT warning. How to suppress it? Victor Porton
2017-11-25 18:09 ` Pascal Obry [this message]
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