Re: compiler warnings when placing QT calls inside objC try block
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