• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mysterious warning (initialization from distinct Objective-C type)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysterious warning (initialization from distinct Objective-C type)


  • Subject: Re: Mysterious warning (initialization from distinct Objective-C type)
  • From: Mason Mark <email@hidden>
  • Date: Wed, 21 Sep 2005 14:35:28 +0900


On Sep 17, 2005, at 4:56 AM, Dan Wood wrote:

I'm trying to build something as a universal binary, and I'm getting this new warning, dozens of times:

    warning: initialization from distinct Objective-C type

I am not finding this documented; the only google result of this yields a hint of where it comes from in GCC:

http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02002/chablis- comptypes.diff

But not other results. (Strangely, googling "distinct Objective-C type" yields no documents, even the above one!)


Any ideas on what the problem is and how to fix it (or shut up the warning)?


I am chiming in here to keep Dan's thread alive, since there seems to be no answer yet, and add a couple of data points.

FSColoredView *v = [self mainView]; // returns an id: -(id) mainView;

The line of code above generates the warning. I am not building a universal binary.

I started getting this warning after upgrading to GCC 4.0.1.

Thanks,
--
Mason Mark
Five Speed Software, Inc.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Mysterious warning (initialization from distinct Objective-C type)
      • From: Chris Hanson <email@hidden>
    • Re: Mysterious warning (initialization from distinct Objective-C type)
      • From: Shaun Wexler <email@hidden>
    • Re: Mysterious warning (initialization from distinct Objective-C type)
      • From: Cameron Hayne <email@hidden>
References: 
 >Mysterious warning: (From: Dan Wood <email@hidden>)

  • Prev by Date: Re: NSPrintInfo bug?
  • Next by Date: Conflict Resolution in Sync Services
  • Previous by thread: Re: Mysterious warning:
  • Next by thread: Re: Mysterious warning (initialization from distinct Objective-C type)
  • Index(es):
    • Date
    • Thread