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

compiler warnings when placing QT calls inside objC try block


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

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); } }

_______________________________________________
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: Chris Espinosa <email@hidden>
  • Prev by Date: Re: C++ unit testing in Xcode
  • Next by Date: Re: compiler warnings when placing QT calls inside objC try block
  • Previous by thread: Re: XCode - Messages do not print to run log
  • Next by thread: Re: compiler warnings when placing QT calls inside objC try block
  • Index(es):
    • Date
    • Thread