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