|
From: John M M. <jo...@us...> - 2004-08-03 02:42:08
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27553/squeak/platforms/Mac OS/vm Modified Files: sqMacUIAppleEvents.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacUIAppleEvents.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacUIAppleEvents.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sqMacUIAppleEvents.c 23 Apr 2004 20:46:38 -0000 1.3 --- sqMacUIAppleEvents.c 3 Aug 2004 02:42:00 -0000 1.4 *************** *** 57,60 **** --- 57,63 ---- char cname[256]; FSSpec workingDirectory; + #pragma unused(aevt) + #pragma unused(refCon) + #pragma unused(reply) // Get spec to the working directory *************** *** 106,110 **** char shortImageName[256]; ! reply; refCon; /* reference args to avoid compiler warnings */ /* record path to VM's home folder */ --- 109,114 ---- char shortImageName[256]; ! #pragma unused(reply) ! #pragma unused(refCon) /* reference args to avoid compiler warnings */ /* record path to VM's home folder */ *************** *** 289,298 **** pascal OSErr HandlePrintDocEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! aevt; reply; refCon; /* reference args to avoid compiler warnings */ return errAEEventNotHandled; } pascal OSErr HandleQuitAppEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! aevt; reply; refCon; /* reference args to avoid compiler warnings */ return noErr; //Note under Carbon it sends us a Quit event, but we don't process because image might not get saved? } --- 293,306 ---- pascal OSErr HandlePrintDocEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! #pragma unused(aevt) ! #pragma unused(reply) ! #pragma unused(refCon) /* reference args to avoid compiler warnings */ return errAEEventNotHandled; } pascal OSErr HandleQuitAppEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! #pragma unused(aevt) ! #pragma unused(reply) ! #pragma unused(refCon) /* reference args to avoid compiler warnings */ return noErr; //Note under Carbon it sends us a Quit event, but we don't process because image might not get saved? } |