|
From: John M M. <jo...@us...> - 2004-08-03 02:40:16
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27227/squeak/platforms/Mac OS/vm Modified Files: sqMacFileLogic.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacFileLogic.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacFileLogic.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** sqMacFileLogic.c 23 Apr 2004 20:46:12 -0000 1.13 --- sqMacFileLogic.c 3 Aug 2004 02:40:08 -0000 1.14 *************** *** 506,509 **** --- 506,510 ---- short pathLength; Handle fullPathHandle; + #pragma unused(encoding) error = FSpGetFullPath(where, &pathLength, &fullPathHandle); *************** *** 840,845 **** OSErr FSMakeFSSpecCompat(short vRefNum, long dirID, ConstStr255Param fileName, FSSpec *spec) { OSErr result; char pascalString[256]; ! /* Let the file system create the FSSpec if it can since it does the job */ /* much more efficiently than I can. */ --- 841,847 ---- OSErr FSMakeFSSpecCompat(short vRefNum, long dirID, ConstStr255Param fileName, FSSpec *spec) { OSErr result; + #if TARGET_API_MAC_CARBON char pascalString[256]; ! #endif /* Let the file system create the FSSpec if it can since it does the job */ /* much more efficiently than I can. */ *************** *** 875,879 **** ProcessSerialNumber PSN; ProcessInfoRec pinfo; - FSSpec checkDirectory; OSErr err; --- 877,880 ---- *************** *** 890,893 **** --- 891,895 ---- FSMakeFSSpecCompat(workingDirectory->vRefNum, workingDirectory->parID,"\p:::",workingDirectory); #else + FSSpec checkDirectory; FSMakeFSSpecCompat(workingDirectory->vRefNum, workingDirectory->parID,"\p:",&checkDirectory); if (strncmp((const char *)checkDirectory.name,(const char *) "\pMacOSClassic",13) == 0) *************** *** 1029,1032 **** --- 1031,1035 ---- NavCallBackUserData callBackUD) { + #pragma unused(callBackUD) // WindowPtr window = // (WindowPtr)callBackParms->eventData.event->message; *************** *** 1050,1053 **** --- 1053,1057 ---- NavFilterModes filterMode) { + #pragma unused(filterMode,callBackUD) NavFileOrFolderInfo* theInfo = (NavFileOrFolderInfo*)info; |