Commit 48afdf8c by Robert Dewar Committed by Arnaud Charlet

s-sopco4.adb: Minor code fix to avoid warning

2008-08-22  Robert Dewar  <dewar@adacore.com>

	* s-sopco4.adb: Minor code fix to avoid warning

	* s-sopco5.adb: Minor code fix to avoid warning

	* s-strops.adb: Minor code fix to avoid warning

From-SVN: r139488
parent aec35074
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2008, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -43,7 +43,7 @@ package body System.String_Ops_Concat_4 is ...@@ -43,7 +43,7 @@ package body System.String_Ops_Concat_4 is
function Str_Concat_4 (S1, S2, S3, S4 : String) return String is function Str_Concat_4 (S1, S2, S3, S4 : String) return String is
begin begin
if S1'Length <= 0 then if S1'Length = 0 then
return S2 & S3 & S4; return S2 & S3 & S4;
else else
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2008, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -43,7 +43,7 @@ package body System.String_Ops_Concat_5 is ...@@ -43,7 +43,7 @@ package body System.String_Ops_Concat_5 is
function Str_Concat_5 (S1, S2, S3, S4, S5 : String) return String is function Str_Concat_5 (S1, S2, S3, S4, S5 : String) return String is
begin begin
if S1'Length <= 0 then if S1'Length = 0 then
return S2 & S3 & S4 & S5; return S2 & S3 & S4 & S5;
else else
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2008, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -43,7 +43,7 @@ package body System.String_Ops is ...@@ -43,7 +43,7 @@ package body System.String_Ops is
function Str_Concat (X, Y : String) return String is function Str_Concat (X, Y : String) return String is
begin begin
if X'Length <= 0 then if X'Length = 0 then
return Y; return Y;
else else
...@@ -91,7 +91,7 @@ package body System.String_Ops is ...@@ -91,7 +91,7 @@ package body System.String_Ops is
function Str_Concat_SC (X : String; Y : Character) return String is function Str_Concat_SC (X : String; Y : Character) return String is
begin begin
if X'Length <= 0 then if X'Length = 0 then
return (1 => Y); return (1 => Y);
else else
......
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