|
From: Andre R. <and...@us...> - 2006-02-08 21:35:26
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26962/Common/source Modified Files: langdialog.c langhash.c langhtml.c langipc.c langscan.c langsystypes.c opicons.c opstructure.c osacomponent.c shellcallbacks.c shellsysverbs.c strings.c tablepopup.c wpengine.c wpverbs.c Log Message: Eliminated Xcode 1.5 compiler warnings about uninitialized variables. Index: wpverbs.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/wpverbs.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** wpverbs.c 24 Jan 2005 03:48:34 -0000 1.5 --- wpverbs.c 8 Feb 2006 21:35:17 -0000 1.6 *************** *** 1732,1736 **** register boolean fl; long startsel, endsel; ! long origendsel, searchstart; short diff; boolean flwrapped = false; --- 1732,1736 ---- register boolean fl; long startsel, endsel; ! long origendsel = 0, searchstart; short diff; boolean flwrapped = false; Index: osacomponent.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/osacomponent.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** osacomponent.c 11 Jan 2005 22:48:10 -0000 1.7 --- osacomponent.c 8 Feb 2006 21:35:17 -0000 1.8 *************** *** 2480,2484 **** Handle hdata; DescType subtype; ! boolean fl; OSAError err = noErr; hdlhashnode hnodesource; --- 2480,2484 ---- Handle hdata; DescType subtype; ! boolean fl = false; OSAError err = noErr; hdlhashnode hnodesource; *************** *** 3607,3612 **** boolean flpushkeys; boolean flignore; ! short rnum; ! Handle haete; #if !TARGET_API_MAC_CARBON --- 3607,3612 ---- boolean flpushkeys; boolean flignore; ! short rnum = 0; ! Handle haete = nil; #if !TARGET_API_MAC_CARBON *************** *** 4485,4489 **** AEDesc* resultingDebugInfoOrDataToSet) { ! OSAError err; hdlhashnode hnode; --- 4485,4489 ---- AEDesc* resultingDebugInfoOrDataToSet) { ! OSAError err = noErr; hdlhashnode hnode; Index: wpengine.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/wpengine.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** wpengine.c 5 Dec 2005 20:36:16 -0000 1.9 --- wpengine.c 8 Feb 2006 21:35:17 -0000 1.10 *************** *** 1180,1184 **** long stackopenright [256]; char stackopentag [256]; ! char tagvalue, lasttagvalue; char ch; long i = 0; --- 1180,1184 ---- long stackopenright [256]; char stackopentag [256]; ! char tagvalue, lasttagvalue = 0; char ch; long i = 0; Index: shellcallbacks.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/shellcallbacks.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** shellcallbacks.c 11 Jan 2005 22:48:10 -0000 1.4 --- shellcallbacks.c 8 Feb 2006 21:35:17 -0000 1.5 *************** *** 120,124 **** register hdlstring hstring; ! short ixbase, ixaction; bigstring bsundo, bs; --- 120,124 ---- register hdlstring hstring; ! short ixbase = 0, ixaction; bigstring bsundo, bs; Index: opstructure.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/opstructure.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** opstructure.c 11 Jan 2005 22:48:09 -0000 1.4 --- opstructure.c 8 Feb 2006 21:35:17 -0000 1.5 *************** *** 2573,2577 **** hdlscreenmap hmap; boolean fltempscrap; ! boolean flmarkcopies; opclearallmarks (); --- 2573,2577 ---- hdlscreenmap hmap; boolean fltempscrap; ! boolean flmarkcopies = false; opclearallmarks (); Index: langdialog.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langdialog.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** langdialog.c 11 Jan 2005 22:48:05 -0000 1.4 --- langdialog.c 8 Feb 2006 21:35:17 -0000 1.5 *************** *** 385,389 **** tyvaluerecord val; boolean fl; ! boolean fldebugging; cleartmpstack (); --- 385,389 ---- tyvaluerecord val; boolean fl; ! boolean fldebugging = false; cleartmpstack (); Index: strings.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/strings.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** strings.c 5 Dec 2005 21:49:20 -0000 1.8 --- strings.c 8 Feb 2006 21:35:17 -0000 1.9 *************** *** 918,922 **** boolean flinstring = false; boolean flinescapesequence = false; ! byte chendstring; for (i = 0; i < ct; i++) { --- 918,922 ---- boolean flinstring = false; boolean flinescapesequence = false; ! byte chendstring = 0; for (i = 0; i < ct; i++) { *************** *** 934,938 **** flinescapesequence = true; else ! flinstring = ch != chendstring; } } --- 934,938 ---- flinescapesequence = true; else ! flinstring = (ch != chendstring); } } Index: langhash.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langhash.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** langhash.c 11 Jan 2005 22:48:06 -0000 1.5 --- langhash.c 8 Feb 2006 21:35:17 -0000 1.6 *************** *** 845,849 **** boolean flneeddatabase = (fldisk && (**hn).val.fldiskval); ! hdldatabaserecord hdb; if (flneeddatabase) { --- 845,849 ---- boolean flneeddatabase = (fldisk && (**hn).val.fldiskval); ! hdldatabaserecord hdb = nil; if (flneeddatabase) { *************** *** 1696,1700 **** boolean flneeddatabase = (!fllocal && existingval.fldiskval); ! hdldatabaserecord hdb; if (flneeddatabase) { --- 1696,1700 ---- boolean flneeddatabase = (!fllocal && existingval.fldiskval); ! hdldatabaserecord hdb = nil; if (flneeddatabase) { Index: langscan.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langscan.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** langscan.c 24 Jan 2005 02:10:01 -0000 1.6 --- langscan.c 8 Feb 2006 21:35:17 -0000 1.7 *************** *** 1134,1141 **** boolean fldone = false; hdltreenode hnode; ! tokentype token, token2; long ixstart; ! long ix1, ix2 = 0; ! unsigned long line2; short ctendbraces = 0; --- 1134,1141 ---- boolean fldone = false; hdltreenode hnode; ! tokentype token, token2 = 0; long ixstart; ! long ix1 = 0, ix2 = 0; ! unsigned long line2 = 0; short ctendbraces = 0; *************** *** 1232,1239 **** boolean fldone = false; hdltreenode hnode; ! tokentype token, lasttoken; long ixstart; long ix1 = 0; ! unsigned long line1; bigstring bsid; boolean flgotid = false; --- 1232,1239 ---- boolean fldone = false; hdltreenode hnode; ! tokentype token, lasttoken = 0; long ixstart; long ix1 = 0; ! unsigned long line1 = 0; bigstring bsid; boolean flgotid = false; Index: langipc.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langipc.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** langipc.c 11 Jan 2005 22:48:06 -0000 1.6 --- langipc.c 8 Feb 2006 21:35:17 -0000 1.7 *************** *** 233,237 **** void *pval = nil; Handle hval = nil; ! long len; byte flval; bigstring bsval; --- 233,237 ---- void *pval = nil; Handle hval = nil; ! long len = 0; byte flval; bigstring bsval; *************** *** 2785,2789 **** tyvaluerecord val; tyipcaddress ipcaddress; ! long savetransid, transactionid; boolean fl; --- 2785,2789 ---- tyvaluerecord val; tyipcaddress ipcaddress; ! long savetransid = 0, transactionid; boolean fl; Index: langsystypes.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langsystypes.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** langsystypes.c 20 Aug 2005 11:11:48 -0000 1.6 --- langsystypes.c 8 Feb 2006 21:35:17 -0000 1.7 *************** *** 1777,1780 **** --- 1777,1785 ---- break; + + default: + p = "\p"; + assert(false); /* 2006-02-08 aradke: this should never happen, but if it does we set p to the empty string */ + break; } Index: opicons.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/opicons.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** opicons.c 11 Jan 2005 22:48:09 -0000 1.4 --- opicons.c 8 Feb 2006 21:35:17 -0000 1.5 *************** *** 228,232 **** Rect linerect, iconrect; ! short iconnum; boolean flinverted, flselected; --- 228,232 ---- Rect linerect, iconrect; ! short iconnum = 0; boolean flinverted, flselected; Index: tablepopup.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/tablepopup.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tablepopup.c 11 Jan 2005 22:48:11 -0000 1.4 --- tablepopup.c 8 Feb 2006 21:35:17 -0000 1.5 *************** *** 322,326 **** register tyvaluetype vt = valuetype; tyvaluerecord val; ! tyexternalid externalid; hdlhashtable ht; bigstring bs; --- 322,326 ---- register tyvaluetype vt = valuetype; tyvaluerecord val; ! tyexternalid externalid = 0; hdlhashtable ht; bigstring bs; Index: langhtml.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langhtml.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** langhtml.c 5 Feb 2006 15:57:42 -0000 1.9 --- langhtml.c 8 Feb 2006 21:35:17 -0000 1.10 *************** *** 5071,5075 **** */ ! boolean flchained, fltmpval; boolean fl = false; tyvaluerecord val; --- 5071,5075 ---- */ ! boolean flchained = false, fltmpval; boolean fl = false; tyvaluerecord val; *************** *** 5163,5167 **** boolean fl = false; ! boolean fltmpval, flchained; if (hcontext != nil) { --- 5163,5167 ---- boolean fl = false; ! boolean fltmpval, flchained = false; if (hcontext != nil) { *************** *** 9240,9244 **** /*other variable definitions*/ handlestream sreturn; ! boolean fl; /*init*/ --- 9240,9244 ---- /*other variable definitions*/ handlestream sreturn; ! boolean fl = false; /*init*/ *************** *** 10052,10056 **** handlestream s; ! long ixstart; long ixsafeto = -1; long balance = 0; --- 10052,10056 ---- handlestream s; ! long ixstart = 0; long ixsafeto = -1; long balance = 0; Index: shellsysverbs.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/shellsysverbs.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** shellsysverbs.c 11 Jan 2005 22:48:10 -0000 1.5 --- shellsysverbs.c 8 Feb 2006 21:35:17 -0000 1.6 *************** *** 1104,1108 **** bigstring bsverb; boolean fl = false; ! boolean flchained; tyvaluerecord val; hdltreenode hfunctioncall; --- 1104,1108 ---- bigstring bsverb; boolean fl = false; ! boolean flchained = false; tyvaluerecord val; hdltreenode hfunctioncall; |