Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27425 Modified Files: op.c langtrace.c threads.c opdisplay.c opops.c opicons.c osacomponent.c langipc.c textdisplay.c Log Message: Fixed GCC compiler warnings. Index: langtrace.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langtrace.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** langtrace.c 23 Oct 2004 22:32:07 -0000 1.2 --- langtrace.c 31 Oct 2004 19:08:15 -0000 1.3 *************** *** 123,127 **** #ifdef fldebug ! fllangtrace = fl; /*set global that turns the syntax trace on or off%/ if (fl) --- 123,127 ---- #ifdef fldebug ! fllangtrace = fl; /%set global that turns the syntax trace on or off%/ if (fl) *************** *** 129,133 **** #endif ! } /*langsyntaxtrace*/ ! --- 129,133 ---- #endif ! } /%langsyntaxtrace%/ ! */ Index: osacomponent.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/osacomponent.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** osacomponent.c 28 Oct 2004 19:54:59 -0000 1.5 --- osacomponent.c 31 Oct 2004 19:08:16 -0000 1.6 *************** *** 1532,1536 **** ! #if TARGET_API_MAC_CLASSIC static UniversalProcPtr installpatch (short trapnum, GNEUPP patch) { --- 1532,1536 ---- ! #if TARGET_API_MAC_OS8 static UniversalProcPtr installpatch (short trapnum, GNEUPP patch) { *************** *** 1709,1713 **** ! #if TARGET_API_MAC_CLASSIC static pascal Boolean osagetnextevent (short mask, EventRecord *event) { --- 1709,1713 ---- ! #if TARGET_API_MAC_OS8 static pascal Boolean osagetnextevent (short mask, EventRecord *event) { *************** *** 1758,1762 **** } /*osagetnextevent*/ ! #endif /*TARGET_API_MAC_CLASSIC*/ --- 1758,1762 ---- } /*osagetnextevent*/ ! #endif /*TARGET_API_MAC_OS8*/ Index: langipc.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langipc.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** langipc.c 23 Oct 2004 22:27:45 -0000 1.2 --- langipc.c 31 Oct 2004 19:08:17 -0000 1.3 *************** *** 2308,2311 **** --- 2308,2315 ---- break; + + default: + /* do nothing */ + break; } Index: opops.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/opops.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** opops.c 23 Oct 2004 22:42:34 -0000 1.2 --- opops.c 31 Oct 2004 19:08:16 -0000 1.3 *************** *** 814,817 **** --- 814,821 ---- break; + + default: + /* do nothing */ + break; } /*switch*/ Index: opicons.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/opicons.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** opicons.c 23 Oct 2004 22:41:04 -0000 1.2 --- opicons.c 31 Oct 2004 19:08:16 -0000 1.3 *************** *** 262,265 **** --- 262,270 ---- case right: iconnum = righticon; break; + + default: + /* do nothing*/ + break; + } /*switch*/ Index: opdisplay.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/opdisplay.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** opdisplay.c 29 Oct 2004 00:09:40 -0000 1.3 --- opdisplay.c 31 Oct 2004 19:08:16 -0000 1.4 *************** *** 1598,1601 **** --- 1598,1606 ---- break; + + default: + /* do nothing */ + break; + } /*switch*/ Index: op.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/op.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** op.c 23 Oct 2004 22:38:52 -0000 1.2 --- op.c 31 Oct 2004 19:08:15 -0000 1.3 *************** *** 1047,1050 **** --- 1047,1054 ---- break; + + default: + /* do nothing */ + break; } *************** *** 1517,1520 **** --- 1521,1528 ---- break; + + default: + /* do nothing */ + break; } *************** *** 1541,1544 **** --- 1549,1556 ---- break; + + default: + /* do nothing */ + break; } *************** *** 1563,1566 **** --- 1575,1583 ---- break; + + default: + /* do nothing */ + break; + } } Index: textdisplay.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/textdisplay.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** textdisplay.c 23 Oct 2004 23:04:40 -0000 1.2 --- textdisplay.c 31 Oct 2004 19:08:17 -0000 1.3 *************** *** 71,74 **** --- 71,77 ---- switch (spacing) { + case singlespaced: + break; + case oneandalittlespaced: r3 += 1; break; Index: threads.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/threads.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** threads.c 31 Oct 2004 16:45:52 -0000 1.3 --- threads.c 31 Oct 2004 19:08:15 -0000 1.4 *************** *** 88,92 **** static pascal void copythreadcontext (ThreadID hthread, void * hglobals) { ! #if TARGET_API_MAC_CLASSIC long curA5 = SetUpAppA5 (); #endif --- 88,92 ---- static pascal void copythreadcontext (ThreadID hthread, void * hglobals) { ! #if TARGET_API_MAC_OS8 long curA5 = SetUpAppA5 (); #endif *************** *** 94,98 **** (*threadcallbacks.swapoutcallback) (hglobals); ! #if TARGET_API_MAC_CLASSIC RestoreA5 (curA5); #endif --- 94,98 ---- (*threadcallbacks.swapoutcallback) (hglobals); ! #if TARGET_API_MAC_OS8 RestoreA5 (curA5); #endif *************** *** 102,106 **** static pascal void swapinthreadcontext (ThreadID hthread, void * hglobals) { ! #if TARGET_API_MAC_CLASSIC long curA5 = SetUpAppA5 (); #endif --- 102,106 ---- static pascal void swapinthreadcontext (ThreadID hthread, void * hglobals) { ! #if TARGET_API_MAC_OS8 long curA5 = SetUpAppA5 (); #endif *************** *** 108,112 **** (*threadcallbacks.swapincallback) (hglobals); ! #if TARGET_API_MAC_CLASSIC RestoreA5 (curA5); #endif --- 108,112 ---- (*threadcallbacks.swapincallback) (hglobals); ! #if TARGET_API_MAC_OS8 RestoreA5 (curA5); #endif *************** *** 116,120 **** static pascal void disposethreadcontext (ThreadID hthread, void * hglobals) { ! #if TARGET_API_MAC_CLASSIC long curA5 = SetUpAppA5 (); #endif --- 116,120 ---- static pascal void disposethreadcontext (ThreadID hthread, void * hglobals) { ! #if TARGET_API_MAC_OS8 long curA5 = SetUpAppA5 (); #endif *************** *** 133,137 **** (*threadcallbacks.disposecallback) (hglobals); ! #if TARGET_API_MAC_CLASSIC RestoreA5 (curA5); #endif --- 133,137 ---- (*threadcallbacks.disposecallback) (hglobals); ! #if TARGET_API_MAC_OS8 RestoreA5 (curA5); #endif |