Opportunity for extra annotations spotted while fixing detection of
unreachable code that follows calls to procedures annotated with
No_Return.
gcc/ada/
* libgnat/g-socket.adb (Raise_Host_Error): Add No_Return aspect.
(Raise_GAI_Error): Likewise.
* libgnat/g-socket.ads (Raise_Socket_Error): Likewise.
else Value);
-- Removes dot at the end of error message
- procedure Raise_Host_Error (H_Error : Integer; Name : String);
+ procedure Raise_Host_Error (H_Error : Integer; Name : String)
+ with No_Return;
-- Raise Host_Error exception with message describing error code (note
-- hstrerror seems to be obsolete) from h_errno. Name is the name
-- or address that was being looked up.
- procedure Raise_GAI_Error (RC : C.int; Name : String);
+ procedure Raise_GAI_Error (RC : C.int; Name : String)
+ with No_Return;
-- Raise Host_Error with exception message in case of errors in
-- getaddrinfo and getnameinfo.
Wait_For_A_Full_Reception : constant Request_Flag_Type := 4;
Send_End_Of_Record : constant Request_Flag_Type := 8;
- procedure Raise_Socket_Error (Error : Integer);
+ procedure Raise_Socket_Error (Error : Integer) with No_Return;
-- Raise Socket_Error with an exception message describing the error code
-- from errno.