diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2011-06-07 20:47:12 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2011-06-07 20:47:12 +0000 |
commit | ac07a61dda48ef1d9564d9a40d04f0e938bdd888 (patch) | |
tree | 1e1393cb20beed8310971be7718df9b25b34e078 /gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m | |
parent | 80e4b9e501e4e702f1c32287c1ff57ca84054a7c (diff) | |
download | gcc-ac07a61dda48ef1d9564d9a40d04f0e938bdd888.zip gcc-ac07a61dda48ef1d9564d9a40d04f0e938bdd888.tar.gz gcc-ac07a61dda48ef1d9564d9a40d04f0e938bdd888.tar.bz2 |
In gcc/testsuite/: 2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com> Iain Sandoe <iains@gcc.gnu.org>
In gcc/testsuite/:
2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
Iain Sandoe <iains@gcc.gnu.org>
* objc-obj-c++-shared/runtime.h (protocol_getMethodDescription):
Added code to deal with the case when [Protocol
-descriptionForInstanceMethod:] or [Protocol
-descriptionForClassMethod:] returns NULL.
2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
Iain Sandoe <iains@gcc.gnu.org>
* objc-obj-c++-shared/TestsuiteObject.h ([-free]): Return 'id'.
* objc-obj-c++-shared/TestsuiteObject.m ([-free]): Return 'id'.
Added cast.
Co-Authored-By: Iain Sandoe <iains@gcc.gnu.org>
From-SVN: r174766
Diffstat (limited to 'gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m')
-rw-r--r-- | gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m b/gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m index 1b033af..2068a91 100644 --- a/gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m +++ b/gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m @@ -41,9 +41,14 @@ along with GCC; see the file COPYING3. If not see { return self; } -- (void) free +/* We return 'id' to have the same signature as [Object -free] in + older runtimes and avoid warnings about conflicting signatures. */ +- (id) free { - object_dispose (self); + /* Cast 'self' to 'id' because the NeXT runtime in darwin8 (Apple + Mac OS X 10.4) declares object_dispose to take an "Object *" + argument. */ + return object_dispose ((id)self); } + (Class) class { |