diff options
author | Ed Schonberg <schonberg@adacore.com> | 2007-08-14 10:49:26 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2007-08-14 10:49:26 +0200 |
commit | b1b1010fb7748a4acfc46f7d1d9e680bc4397904 (patch) | |
tree | a1eae04afc1d40b823d6ca3175d5fdd0c261cc71 | |
parent | f9c0d38ccdfa6044f994ae20098ad48ee2099647 (diff) | |
download | gcc-b1b1010fb7748a4acfc46f7d1d9e680bc4397904.zip gcc-b1b1010fb7748a4acfc46f7d1d9e680bc4397904.tar.gz gcc-b1b1010fb7748a4acfc46f7d1d9e680bc4397904.tar.bz2 |
s-ficobl.ads: Declare AFCB as a tagged incomplete type...
2007-08-14 Ed Schonberg <schonberg@adacore.com>
* s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
obsolescent warning on application of 'Class to an incomplete type.
* s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
prevent obsolescent warning on application of 'Class to an incomplete
type.
From-SVN: r127460
-rw-r--r-- | gcc/ada/s-ficobl.ads | 4 | ||||
-rw-r--r-- | gcc/ada/s-finroo.ads | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/s-ficobl.ads b/gcc/ada/s-ficobl.ads index 7c1e1c4..d0a0805 100644 --- a/gcc/ada/s-ficobl.ads +++ b/gcc/ada/s-ficobl.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2007, 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- -- @@ -78,7 +78,7 @@ package System.File_Control_Block is -- stream with the semantics specified in the RM for file sharing. All -- files opened with "shared=no" will have their own stream. - type AFCB; + type AFCB is tagged; type AFCB_Ptr is access all AFCB'Class; type AFCB is abstract new Ada.Streams.Root_Stream_Type with record diff --git a/gcc/ada/s-finroo.ads b/gcc/ada/s-finroo.ads index 3bd1c75..79f403c 100644 --- a/gcc/ada/s-finroo.ads +++ b/gcc/ada/s-finroo.ads @@ -39,7 +39,7 @@ with Ada.Unchecked_Conversion; package System.Finalization_Root is pragma Preelaborate; - type Root_Controlled; + type Root_Controlled is tagged; type Finalizable_Ptr is access all Root_Controlled'Class; |