mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
ENH: fix warning and code style
This commit is contained in:
@@ -69,10 +69,12 @@ int main(int argc, char* argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
OSErr err = noErr;
|
||||
|
||||
//create file reference from file spec
|
||||
if (err = FSpMakeFSRef(&fileSpec, &fileRef)) return err;
|
||||
OSErr err = FSpMakeFSRef(&fileSpec, &fileRef);
|
||||
if(err)
|
||||
{
|
||||
return err;
|
||||
}
|
||||
|
||||
// and then convert the FSRef to a path
|
||||
if ( FSRefMakePath(&fileRef, path, MaximumPathLength) )
|
||||
|
||||
Reference in New Issue
Block a user