Commit 014c0095 by Arnaud Charlet

Update comments.

Minor reformatting.
Kill new warnings.

From-SVN: r130888
parent 14b7d74b
...@@ -573,6 +573,8 @@ package body GNAT.Sockets is ...@@ -573,6 +573,8 @@ package body GNAT.Sockets is
(Socket : Socket_Type; (Socket : Socket_Type;
Server : in out Sock_Addr_Type) Server : in out Sock_Addr_Type)
is is
pragma Warnings (Off, Server);
Res : C.int; Res : C.int;
Sin : aliased Sockaddr_In; Sin : aliased Sockaddr_In;
Len : constant C.int := Sin'Size / 8; Len : constant C.int := Sin'Size / 8;
...@@ -1376,6 +1378,8 @@ package body GNAT.Sockets is ...@@ -1376,6 +1378,8 @@ package body GNAT.Sockets is
Item : out Ada.Streams.Stream_Element_Array; Item : out Ada.Streams.Stream_Element_Array;
Last : out Ada.Streams.Stream_Element_Offset) Last : out Ada.Streams.Stream_Element_Offset)
is is
pragma Warnings (Off, Stream);
First : Ada.Streams.Stream_Element_Offset := Item'First; First : Ada.Streams.Stream_Element_Offset := Item'First;
Index : Ada.Streams.Stream_Element_Offset := First - 1; Index : Ada.Streams.Stream_Element_Offset := First - 1;
Max : constant Ada.Streams.Stream_Element_Offset := Item'Last; Max : constant Ada.Streams.Stream_Element_Offset := Item'Last;
...@@ -2111,6 +2115,8 @@ package body GNAT.Sockets is ...@@ -2111,6 +2115,8 @@ package body GNAT.Sockets is
(Stream : in out Datagram_Socket_Stream_Type; (Stream : in out Datagram_Socket_Stream_Type;
Item : Ada.Streams.Stream_Element_Array) Item : Ada.Streams.Stream_Element_Array)
is is
pragma Warnings (Off, Stream);
First : Ada.Streams.Stream_Element_Offset := Item'First; First : Ada.Streams.Stream_Element_Offset := Item'First;
Index : Ada.Streams.Stream_Element_Offset := First - 1; Index : Ada.Streams.Stream_Element_Offset := First - 1;
Max : constant Ada.Streams.Stream_Element_Offset := Item'Last; Max : constant Ada.Streams.Stream_Element_Offset := Item'Last;
...@@ -2144,6 +2150,8 @@ package body GNAT.Sockets is ...@@ -2144,6 +2150,8 @@ package body GNAT.Sockets is
(Stream : in out Stream_Socket_Stream_Type; (Stream : in out Stream_Socket_Stream_Type;
Item : Ada.Streams.Stream_Element_Array) Item : Ada.Streams.Stream_Element_Array)
is is
pragma Warnings (Off, Stream);
First : Ada.Streams.Stream_Element_Offset := Item'First; First : Ada.Streams.Stream_Element_Offset := Item'First;
Index : Ada.Streams.Stream_Element_Offset := First - 1; Index : Ada.Streams.Stream_Element_Offset := First - 1;
Max : constant Ada.Streams.Stream_Element_Offset := Item'Last; Max : constant Ada.Streams.Stream_Element_Offset := Item'Last;
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
-- Spelling checker -- Spelling checker
-- This package provides a utility routine for checking for bad spellings -- This package provides a utility routine for checking for bad spellings
-- for the case of String arguments.
pragma Warnings (Off); pragma Warnings (Off);
pragma Compiler_Unit; pragma Compiler_Unit;
...@@ -45,16 +46,14 @@ package GNAT.Spelling_Checker is ...@@ -45,16 +46,14 @@ package GNAT.Spelling_Checker is
function Is_Bad_Spelling_Of function Is_Bad_Spelling_Of
(Found : String; (Found : String;
Expect : String) return Boolean; Expect : String) return Boolean;
-- Determines if the string Found is a plausible misspelling of the -- Determines if the string Found is a plausible misspelling of the string
-- string Expect. Returns True for an exact match or a probably -- Expect. Returns True for an exact match or a probably misspelling, False
-- misspelling, False if no near match is detected. This routine -- if no near match is detected. This routine is case sensitive, so the
-- is case sensitive, so the caller should fold both strings to -- caller should fold both strings to get a case insensitive match.
-- get a case insensitive match.
-- --
-- Note: the spec of this routine is deliberately rather vague. This -- Note: the spec of this routine is deliberately rather vague. It is used
-- routine is the one used by GNAT itself to detect misspelled keywords -- by GNAT itself to detect misspelled keywords and identifiers, and is
-- and identifiers, and is heuristically adjusted to be appropriate to -- heuristically adjusted to be appropriate to this usage. It will work
-- this usage. It will work well in any similar case of named entities -- well in any similar case of named entities.
-- with relatively short mnemonic names.
end GNAT.Spelling_Checker; end GNAT.Spelling_Checker;
...@@ -499,4 +499,5 @@ package body MLib.Tgt is ...@@ -499,4 +499,5 @@ package body MLib.Tgt is
begin begin
return Full; return Full;
end Support_For_Libraries_Default; end Support_For_Libraries_Default;
end MLib.Tgt; end MLib.Tgt;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment