• 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: Chris Espinosa <email@hidden>
  • Date: Mon, 7 Mar 2005 11:02:07 -0800

On Mar 7, 2005, at 8:57 AM, Byron Wright wrote:

Maybe a newb question but I don't understand why this is happening (my guess is it has something to do with what the compiler does with try catch blocks? ). I get the following warning from the following code...

warning : CFCQuickTimeUtils.m:59: warning: passing arg 2 of `OpenMovieFile' discards qualifiers from pointer target type


Movie MovieFromPath( NSString * path) { OSErr err; Movie aMovie = nil; short movieResFile;

    @try
    {
        FSSpec fileSpec;

        Boolean success = makeFSSpecForPath(&fileSpec,path);

if (!success)
{
//thows an exception here with information about the Quicktime error.
}
//the following line produces the warning.
err = OpenMovieFile (&fileSpec, &movieResFile,
fsCurPerm);
...
...
}
@catch(CFCQTException * qte)
{
...
}
@finally
{
CloseMovieFile (movieResFile);
}
}



It's not a newbie question, it's unfortunately a bug in the gcc3.3 compiler. It's fixed in gcc4.0. You can ignore the warning for now, it's harmless.


Chris

_______________________________________________
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


  • Follow-Ups:
    • Re: compiler warnings when placing QT calls inside objC try block
      • From: Byron Wright <email@hidden>
References: 
 >compiler warnings when placing QT calls inside objC try block (From: Byron Wright <email@hidden>)

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