summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-26 09:24:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-26 09:24:56 (GMT)
commitc25f08d8cfc7cf44411145cc13f3d201bb9fbf86 (patch)
treea15cd89ae53dde7838588d24d9840624355c58a7 /generic/tkEntry.c
parent7c6b2012e75a7c80f78d549fc54ba1613bcfa5cc (diff)
downloadtk-c25f08d8cfc7cf44411145cc13f3d201bb9fbf86.zip
tk-c25f08d8cfc7cf44411145cc13f3d201bb9fbf86.tar.gz
tk-c25f08d8cfc7cf44411145cc13f3d201bb9fbf86.tar.bz2
Make all Destroy??? functions match the Tcl_FreeProc signature. That will prevent compiler warnings in all thinkable situations.
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r--generic/tkEntry.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index 07ab2d9..6601d65 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -408,7 +408,7 @@ static const char *const selElementNames[] = {
static int ConfigureEntry(Tcl_Interp *interp, Entry *entryPtr,
int objc, Tcl_Obj *const objv[]);
static int DeleteChars(Entry *entryPtr, Tcl_Size index, Tcl_Size count);
-static void DestroyEntry(void *memPtr);
+static Tcl_FreeProc DestroyEntry;
static void DisplayEntry(void *clientData);
static void EntryBlinkProc(void *clientData);
static void EntryCmdDeletedProc(void *clientData);
@@ -1038,7 +1038,11 @@ EntryWidgetObjCmd(
static void
DestroyEntry(
+#if TCL_MAJOR_VERSION > 8
void *memPtr) /* Info about entry widget. */
+#else
+ char *memPtr)
+#endif
{
Entry *entryPtr = (Entry *)memPtr;