diff options
author | Robert Dewar <dewar@adacore.com> | 2008-08-22 17:46:00 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-08-22 17:46:00 +0200 |
commit | 48afdf8c0d636e944fed3ce34c37d4d1dd773e23 (patch) | |
tree | 9d926bd2a9aa4492ebb651875fbd047db0ba0899 /gcc | |
parent | aec35074d7b80dfef240992ebba2dedd0a782685 (diff) | |
download | gcc-48afdf8c0d636e944fed3ce34c37d4d1dd773e23.zip gcc-48afdf8c0d636e944fed3ce34c37d4d1dd773e23.tar.gz gcc-48afdf8c0d636e944fed3ce34c37d4d1dd773e23.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/s-sopco4.adb | 4 | ||||
-rw-r--r-- | gcc/ada/s-sopco5.adb | 4 | ||||
-rw-r--r-- | gcc/ada/s-strops.adb | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ada/s-sopco4.adb b/gcc/ada/s-sopco4.adb index 8770a67..f7751aa 100644 --- a/gcc/ada/s-sopco4.adb +++ b/gcc/ada/s-sopco4.adb @@ -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 diff --git a/gcc/ada/s-sopco5.adb b/gcc/ada/s-sopco5.adb index 45eafd1..bacae9f 100644 --- a/gcc/ada/s-sopco5.adb +++ b/gcc/ada/s-sopco5.adb @@ -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 diff --git a/gcc/ada/s-strops.adb b/gcc/ada/s-strops.adb index 4e43472..e92c3bb 100644 --- a/gcc/ada/s-strops.adb +++ b/gcc/ada/s-strops.adb @@ -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 |