summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-02-12 12:51:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-02-12 12:51:10 (GMT)
commit6dbbfe9f269314838207f70fd26de9a7d5394039 (patch)
tree587344f98f1985de320c58734134f3eee93b87f8 /macosx/tkMacOSXButton.c
parent7d13b808151fa7b1fff9754f24f5f32739f5950b (diff)
downloadtk-6dbbfe9f269314838207f70fd26de9a7d5394039.zip
tk-6dbbfe9f269314838207f70fd26de9a7d5394039.tar.gz
tk-6dbbfe9f269314838207f70fd26de9a7d5394039.tar.bz2
Silence some compiler warnings
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r--macosx/tkMacOSXButton.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index 5cdfb3c..763f544 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -471,7 +471,6 @@ TkpComputeButtonGeometry(
}
/*
-/*
*----------------------------------------------------------------------
*
* DrawButtonImageAndText --
@@ -966,12 +965,10 @@ ButtonContentDrawCB (
{
TkButton *butPtr = (TkButton *)ptr;
Tk_Window tkwin = butPtr->tkwin;
- HIRect * bounds;
if (tkwin == NULL || !Tk_IsMapped(tkwin)) {
return;
}
- MacDrawable *macWin = (MacDrawable *) Tk_WindowId(tkwin);
/*Overlay Tk elements over button native region: drawing elements within button boundaries/native region causes unpredictable metrics.*/
DrawButtonImageAndText( butPtr);