summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--macosx/tkMacOSXButton.c4
-rw-r--r--macosx/tkMacOSXDialog.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 3cfa1e7..312fa51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-22 Daniel Steffen <das@users.sourceforge.net>
+
+ * macosx/tkMacOSXButton.c:
+ * macosx/tkMacOSXDialog.c: fix warnings.
+
2005-08-16 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tkOldConfig.c (Tk_ConfigureWidget, Tk_ConfigureInfo):
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index 4f2cf9a..b4cfc67 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXButton.c,v 1.2.2.9 2005/05/14 20:53:31 das Exp $
+ * RCS: @(#) $Id: tkMacOSXButton.c,v 1.2.2.10 2005/08/22 11:55:15 das Exp $
*/
#include "tkButton.h"
@@ -204,7 +204,7 @@ TkpDisplayButton(
int borderWidth;
Pixmap pixmap;
int wasUsingControl;
- int imageWidth, imageHeight;
+ int imageWidth = 0, imageHeight = 0;
int imageXOffset = 0, imageYOffset = 0; /* image information that will
* be used to restrict disabled
* pixmap as well */
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 34f3fc0..d94b945 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.4.2.5 2005/08/09 07:39:54 das Exp $
+ * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.4.2.6 2005/08/22 11:55:15 das Exp $
*/
#include <Carbon/Carbon.h>
@@ -1292,7 +1292,7 @@ Tk_MessageBoxObjCmd(
int defaultNativeButtonIndex; /* 1, 2, 3: right to left. */
int typeIndex;
int i;
- int indexDefaultOption;
+ int indexDefaultOption = 0;
int result = TCL_OK;
static CONST char *movableAlertStrings[] = {