|
From: Karsten W. <kar...@us...> - 2006-01-31 16:33:40
|
Update of /cvsroot/frontierkernel/Frontier/Common/IOAToolkit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29072 Modified Files: Tag: pre_int64_branch ioabutton.c ioacheckbox.c ioaicon.c ioapopup.c ioastatic.c Log Message: warning fixes Index: ioastatic.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/IOAToolkit/ioastatic.c,v retrieving revision 1.3 retrieving revision 1.3.6.1 diff -C2 -d -r1.3 -r1.3.6.1 *** ioastatic.c 11 Jan 2005 22:47:38 -0000 1.3 --- ioastatic.c 31 Jan 2006 16:33:23 -0000 1.3.6.1 *************** *** 106,110 **** static boolean debugstatic (hdlobject h, bigstring errorstring) { ! setstringlength (errorstring, 0); --- 106,111 ---- static boolean debugstatic (hdlobject h, bigstring errorstring) { ! #pragma unused (h) ! setstringlength (errorstring, 0); *************** *** 134,138 **** static boolean initstatic (tyobject *obj) { ! return (true); /*we do want to edit it*/ } /*initstatic*/ --- 135,140 ---- static boolean initstatic (tyobject *obj) { ! #pragma unused (obj) ! return (true); /*we do want to edit it*/ } /*initstatic*/ *************** *** 140,144 **** static boolean recalcstatic (hdlobject h, boolean flmajorrecalc) { ! return (IOArecalcobjectvalue (h)); } /*recalcstatic*/ --- 142,147 ---- static boolean recalcstatic (hdlobject h, boolean flmajorrecalc) { ! #pragma unused (flmajorrecalc) ! return (IOArecalcobjectvalue (h)); } /*recalcstatic*/ Index: ioapopup.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/IOAToolkit/ioapopup.c,v retrieving revision 1.5 retrieving revision 1.5.6.1 diff -C2 -d -r1.5 -r1.5.6.1 *** ioapopup.c 11 Jan 2005 22:47:38 -0000 1.5 --- ioapopup.c 31 Jan 2006 16:33:23 -0000 1.5.6.1 *************** *** 386,395 **** (*r).bottom = (*r).top + height; ! /*side-effect -- we use the popup width when drawing the object*/ { ! ! hdlpopupdata hdata = (hdlpopupdata) (**h).objectdata; ! ! (**hdata).popupwidth = popupwidth; ! } return (true); --- 386,395 ---- (*r).bottom = (*r).top + height; ! /*side-effect -- we use the popup width when drawing the object*/ ! { ! hdlpopupdata lhdata = (hdlpopupdata) (**h).objectdata; ! ! (**lhdata).popupwidth = popupwidth; ! } return (true); *************** *** 421,425 **** static boolean clickpopup (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click) { ! hdlpopupdata hdata = (hdlpopupdata) (**h).objectdata; hdlcard hc = (**h).owningcard; --- 421,426 ---- static boolean clickpopup (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click) { ! #pragma unused (listhead, flshiftkey, fl2click) ! hdlpopupdata hdata = (hdlpopupdata) (**h).objectdata; hdlcard hc = (**h).owningcard; *************** *** 517,523 **** #if TARGET_API_MAC_CARBON == 1 ! static void MyThemeButtonDrawCallback (const Rect *bounds, ThemeButtonKind kind, const ThemeButtonDrawInfo *info, ! UInt32 refcon, SInt16 depth, Boolean isColorDev) { ! /* 7.0b48 PBS: draw the label for a popup menu. --- 518,532 ---- #if TARGET_API_MAC_CARBON == 1 ! static void ! MyThemeButtonDrawCallback ( ! const Rect *bounds, ! ThemeButtonKind kind, ! const ThemeButtonDrawInfo *info, ! UInt32 refcon, ! SInt16 depth, ! Boolean isColorDev) ! { ! #pragma unused (kind, info, depth, isColorDev) ! /* 7.0b48 PBS: draw the label for a popup menu. *************** *** 674,678 **** static boolean recalcpopup (hdlobject h, boolean flmajorrecalc) { ! bigstring errorstring; Handle htoss; --- 683,688 ---- static boolean recalcpopup (hdlobject h, boolean flmajorrecalc) { ! #pragma unused (flmajorrecalc) ! bigstring errorstring; Handle htoss; *************** *** 729,733 **** static boolean canreplicatepopup (hdlobject h) { ! return (true); } /*canreplicatepopup*/ --- 739,744 ---- static boolean canreplicatepopup (hdlobject h) { ! #pragma unused (h) ! return (true); } /*canreplicatepopup*/ *************** *** 766,770 **** static boolean debugpopup (hdlobject h, bigstring errorstring) { ! setstringlength (errorstring, 0); --- 777,782 ---- static boolean debugpopup (hdlobject h, bigstring errorstring) { ! #pragma unused (h) ! setstringlength (errorstring, 0); Index: ioabutton.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/IOAToolkit/ioabutton.c,v retrieving revision 1.4 retrieving revision 1.4.6.1 diff -C2 -d -r1.4 -r1.4.6.1 *** ioabutton.c 11 Jan 2005 22:47:38 -0000 1.4 --- ioabutton.c 31 Jan 2006 16:33:23 -0000 1.4.6.1 *************** *** 68,72 **** static boolean canreplicatebutton (hdlobject h) { ! return (true); /*it can be replicated*/ } /*canreplicatebutton*/ --- 68,72 ---- static boolean canreplicatebutton (hdlobject h) { ! #pragma unused (h) return (true); /*it can be replicated*/ } /*canreplicatebutton*/ *************** *** 100,104 **** static boolean debugbutton (hdlobject h, bigstring errorstring) { ! setstringlength (errorstring, 0); --- 100,104 ---- static boolean debugbutton (hdlobject h, bigstring errorstring) { ! #pragma unused (h) setstringlength (errorstring, 0); *************** *** 108,119 **** #if TARGET_API_MAC_CARBON == 1 - static void MyThemeButtonDrawCallback (const Rect *bounds, ThemeButtonKind kind, const ThemeButtonDrawInfo *info, - UInt32 refcon, SInt16 depth, Boolean isColorDev) { - - /* - 7.0b48 PBS: draw the label for a popup menu. - */ - Handle htext = (Handle) refcon; ThemeFontID idfont; --- 108,125 ---- #if TARGET_API_MAC_CARBON == 1 + static void + MyThemeButtonDrawCallback ( + const Rect *bounds, + ThemeButtonKind kind, + const ThemeButtonDrawInfo *info, + UInt32 refcon, + SInt16 depth, + Boolean isColorDev) + { + #pragma unused (kind, info, depth, isColorDev) + /* + 7.0b48 PBS: draw the label for a popup menu. + */ Handle htext = (Handle) refcon; ThemeFontID idfont; Index: ioaicon.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/IOAToolkit/ioaicon.c,v retrieving revision 1.3 retrieving revision 1.3.6.1 diff -C2 -d -r1.3 -r1.3.6.1 *** ioaicon.c 11 Jan 2005 22:47:38 -0000 1.3 --- ioaicon.c 31 Jan 2006 16:33:23 -0000 1.3.6.1 *************** *** 95,99 **** static boolean canreplicateicon (hdlobject h) { ! return (true); /*it can be replicated*/ } /*canreplicateicon*/ --- 95,100 ---- static boolean canreplicateicon (hdlobject h) { ! #pragma unused (h) ! return (true); /*it can be replicated*/ } /*canreplicateicon*/ *************** *** 107,111 **** static boolean debugicon (hdlobject h, bigstring errorstring) { ! setstringlength (errorstring, 0); --- 108,113 ---- static boolean debugicon (hdlobject h, bigstring errorstring) { ! #pragma unused (h) ! setstringlength (errorstring, 0); *************** *** 210,214 **** static boolean recalciconobject (hdlobject h, boolean flmajorrecalc) { ! return (IOArecalcobjectvalue (h)); } /*recalciconobject*/ --- 212,217 ---- static boolean recalciconobject (hdlobject h, boolean flmajorrecalc) { ! #pragma unused (flmajorrecalc) ! return (IOArecalcobjectvalue (h)); } /*recalciconobject*/ *************** *** 325,336 **** } /*unpackicondata*/ ! ! static boolean clickicon (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click) { ! hdlicondata hdata = (hdlicondata) (**h).objectdata; ! tyiconclickcallback callback = (**hdata).iconclick; ! if (callback != nil) ! return ((*callback) (h, fl2click)); if (fl2click) --- 328,347 ---- } /*unpackicondata*/ ! ! static boolean ! clickicon ( ! hdlobject listhead, ! hdlobject h, ! Point pt, ! boolean flshiftkey, ! boolean fl2click) ! { ! #pragma unused (listhead, pt, flshiftkey) ! hdlicondata hdata = (hdlicondata) (**h).objectdata; ! tyiconclickcallback lcallback = (**hdata).iconclick; ! if (lcallback != nil) ! return ((*lcallback) (h, fl2click)); if (fl2click) Index: ioacheckbox.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/IOAToolkit/ioacheckbox.c,v retrieving revision 1.3 retrieving revision 1.3.6.1 diff -C2 -d -r1.3 -r1.3.6.1 *** ioacheckbox.c 11 Jan 2005 22:47:38 -0000 1.3 --- ioacheckbox.c 31 Jan 2006 16:33:23 -0000 1.3.6.1 *************** *** 80,84 **** static boolean canreplicatecheckbox (hdlobject h) { ! return (true); /*it can be replicated*/ } /*canreplicatecheckbox*/ --- 80,85 ---- static boolean canreplicatecheckbox (hdlobject h) { ! #pragma unused (h) ! return (true); /*it can be replicated*/ } /*canreplicatecheckbox*/ *************** *** 108,112 **** static boolean debugcheckbox (hdlobject h, bigstring errorstring) { ! setstringlength (errorstring, 0); --- 109,114 ---- static boolean debugcheckbox (hdlobject h, bigstring errorstring) { ! #pragma unused (h) ! setstringlength (errorstring, 0); *************** *** 167,171 **** static boolean initcheckbox (tyobject *obj) { ! return (true); /*nothing special, we do want to edit it*/ } /*initcheckbox*/ --- 169,174 ---- static boolean initcheckbox (tyobject *obj) { ! #pragma unused (obj) ! return (true); /*nothing special, we do want to edit it*/ } /*initcheckbox*/ *************** *** 173,177 **** static boolean recalccheckbox (hdlobject h, boolean flmajorrecalc) { ! bigstring errorstring; Handle hboolvalue; --- 176,180 ---- static boolean recalccheckbox (hdlobject h, boolean flmajorrecalc) { ! #pragma unused (flmajorrecalc) bigstring errorstring; Handle hboolvalue; *************** *** 187,191 **** static boolean clickcheckbox (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click) { ! (**h).objectflag = !(**h).objectflag; --- 190,194 ---- static boolean clickcheckbox (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click) { ! #pragma unused (listhead, pt, flshiftkey, fl2click) (**h).objectflag = !(**h).objectflag; |