• 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: compiler warnings when placing QT calls inside objC try block
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler warnings when placing QT calls inside objC try block


  • Subject: Re: compiler warnings when placing QT calls inside objC try block
  • From: Byron Wright <email@hidden>
  • Date: Mon, 7 Mar 2005 12:42:21 -0800

doing so has no effect because that still won't match the method signature. Here is another call that gives the same warning. Example :

short                   movieResFile;

	@try
	{
		FSSpec fileSpec;
		.....
		err = OpenMovieFile (&fileSpec,&movieResFile,
									fsCurPerm);
	...

here is the function signature:

OSErr OpenMovieFile (
   const FSSpec    *fileSpec,
   short           *resRefNum, // <-- not a const pointer
   SInt8           permission );


On Mar 7, 2005, at 12:21 PM, Agent M wrote:

Sure- just cast the pointer to the correct type:
OpenMovieFile((const FSSpec*)&fsspec,....);

On Mar 7, 2005, at 3:06 PM, Byron Wright wrote:

ah ok. Thanks Chris. No way to suppress this warning either I suppose? I don't like the color yellow in my build window :)
On Mar 7, 2005, at 11:02 AM, Chris Espinosa wrote:

¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ AgentM email@hidden ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬





_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >compiler warnings when placing QT calls inside objC try block (From: Byron Wright <email@hidden>)
 >Re: compiler warnings when placing QT calls inside objC try block (From: Chris Espinosa <email@hidden>)
 >Re: compiler warnings when placing QT calls inside objC try block (From: Byron Wright <email@hidden>)

  • Prev by Date: Re: compiler warnings when placing QT calls inside objC try block
  • Next by Date: How to link with zlib?
  • Previous by thread: Re: compiler warnings when placing QT calls inside objC try block
  • Next by thread: How to link with zlib?
  • Index(es):
    • Date
    • Thread