diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-10-24 06:00:22 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-10-24 06:00:22 (GMT) |
commit | 3f73a2af199d6d4f755b7529b57c831a8624e7e4 (patch) | |
tree | aff048f2e3f8c1b782b22f1d8f3a6aead342d1a4 /generic | |
parent | 443bdbf3e3f0e70d83d180455daed3194fc921dd (diff) | |
download | tk-3f73a2af199d6d4f755b7529b57c831a8624e7e4.zip tk-3f73a2af199d6d4f755b7529b57c831a8624e7e4.tar.gz tk-3f73a2af199d6d4f755b7529b57c831a8624e7e4.tar.bz2 |
Silence warning.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkCanvUtil.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c index 5c14d48..6d84ad2 100644 --- a/generic/tkCanvUtil.c +++ b/generic/tkCanvUtil.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: tkCanvUtil.c,v 1.20 2008/04/27 22:38:55 dkf Exp $ + * RCS: @(#) $Id: tkCanvUtil.c,v 1.21 2008/10/24 06:00:22 dkf Exp $ */ #include "tkInt.h" @@ -819,10 +819,10 @@ TkSmoothPrintProc( * information about how to reclaim storage * for return string. */ { - register Tk_SmoothMethod **smoothPtr = - (Tk_SmoothMethod **) (widgRec + offset); + register const Tk_SmoothMethod *smoothPtr = + * (Tk_SmoothMethod **) (widgRec + offset); - return (*smoothPtr) ? (*smoothPtr)->name : "0"; + return smoothPtr ? (char *) smoothPtr->name : "0"; } /* *-------------------------------------------------------------- @@ -1803,6 +1803,7 @@ TkCanvTranslatePath( /* * The current vertex is to the left of xClip */ + if (!inside) { /* * If the current vertex is on the left of xClip and one |