s-sopco4.adb: Minor code fix to avoid warning
authorRobert Dewar <dewar@adacore.com>
Fri, 22 Aug 2008 15:46:00 +0000 (17:46 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 22 Aug 2008 15:46:00 +0000 (17:46 +0200)
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

gcc/ada/s-sopco4.adb
gcc/ada/s-sopco5.adb
gcc/ada/s-strops.adb

index 8770a67034e4ef510ac6227a19d517e8c60833b9..f7751aaae5adda2d3a33908558a015194a396838 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 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 --
 -- 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
 
    function Str_Concat_4 (S1, S2, S3, S4 : String) return String is
    begin
-      if S1'Length <= 0 then
+      if S1'Length = 0 then
          return S2 & S3 & S4;
 
       else
index 45eafd1a79cc1eb7621e12eca6a79d5f2fa10ebf..bacae9f7aa0b26c10e60658b0633e0314a2e19df 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 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 --
 -- 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
 
    function Str_Concat_5 (S1, S2, S3, S4, S5 : String) return String is
    begin
-      if S1'Length <= 0 then
+      if S1'Length = 0 then
          return S2 & S3 & S4 & S5;
 
       else
index 4e434726b0716e6debf5a15c8aa2da4fcbe0b574..e92c3bb7a6c2b948b61e98dc03ac54980184dcd7 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 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 --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -43,7 +43,7 @@ package body System.String_Ops is
 
    function Str_Concat (X, Y : String) return String is
    begin
-      if X'Length <= 0 then
+      if X'Length = 0 then
          return Y;
 
       else
@@ -91,7 +91,7 @@ package body System.String_Ops is
 
    function Str_Concat_SC (X : String; Y : Character) return String is
    begin
-      if X'Length <= 0 then
+      if X'Length = 0 then
          return (1 => Y);
 
       else