tamilyn / xee

Automatically exported from code.google.com/p/xee
0 stars 0 forks source link

XCode 3.2 / SVN compilation failure due to incompatible return types (CFAbsoluteTime) #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load Xee-read-only XCode project from SVN into XCode 3.2 on OS X 10.6
2. Try and build (after first getting the various frameworks, etc. sorted
out and enabling GCC 4.0 as the compiler)
3. Receive build error notifications (8 in total as of 8th September), all
in XeeFSRef.m

-(CFAbsoluteTime)creationTime
{
    FSCatalogInfo catinfo;
    if
(FSGetCatalogInfo(&ref,kFSCatInfoCreateDate,&catinfo,NULL,NULL,NULL)!=noErr) 
return
nil;
    CFAbsoluteTime res;
    UCConvertUTCDateTimeToCFAbsoluteTime(&catinfo.createDate,&res);
    return res;
}

The error is 'incompatible types in return', with XCode placing the error
at the conditional. All similar CFAbsoluteTime methods are flagged.

Original issue reported on code.google.com by Phil.Sto...@gmail.com on 8 Sep 2009 at 12:24

GoogleCodeExporter commented 9 years ago
This seems to be avoided if the project is set to 10.4, with no other changes 
(aside
from the necessary change to GCC version that allows XCode to compile the 
project).

Original comment by Phil.Sto...@gmail.com on 8 Sep 2009 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by paracel...@gmail.com on 18 Sep 2009 at 8:21