public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix missing function declaration warnings in yesterday's libobjc patch
@ 2011-05-26 10:31 Nicola Pero
  0 siblings, 0 replies; only message in thread
From: Nicola Pero @ 2011-05-26 10:31 UTC (permalink / raw)
  To: gcc-patches

This patch fixes a problem with the patch from Richard/David that was committed yesterday;
presumably since the patch was originally written before the new libobjc API revamp, it was
still using objc_lookup_class(), which is not part of the Modern API, hence currently undeclared
in sendmsg.c.  I replaced it with the Modern API counter-part, which is objc_getClass(),
fixing the compiler warnings, and providing the compiler with the correct function declaration.

Applied to trunk.

Thanks

Index: sendmsg.c
===================================================================
--- sendmsg.c   (revision 174267)
+++ sendmsg.c   (working copy)
@@ -1111,7 +1111,7 @@
   else
     {
       /* Retreive the class from the meta class.  */
-      Class c = objc_lookup_class (cls->name);
+      Class c = objc_getClass (cls->name);
       assert (CLS_ISMETA (cls));
       assert (c);
       __objc_send_initialize (c);
Index: ChangeLog
===================================================================
--- ChangeLog   (revision 174267)
+++ ChangeLog   (working copy)
@@ -1,3 +1,8 @@
+2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
+       not objc_lookupClass.
+
 2011-05-25  Richard Frith-Macdonald <rfm@gnu.org>
            David Ayers  <ayers@fsfe.org>
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-26  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 10:31 Fix missing function declaration warnings in yesterday's libobjc patch Nicola Pero

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).