Skip to content

Commit b1980f6

Browse files
committed
PL/Tcl: Fix compiler warnings with Tcl 8.6
Some constification was added in the Tcl APIs, so add the modifiers in PL/Tcl as well.
1 parent b78647a commit b1980f6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/pl/tcl/pltcl.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
#define CONST84
1919
#endif
2020

21+
/* ... and for Tcl 8.6. */
22+
#ifndef CONST86
23+
#define CONST86
24+
#endif
25+
2126
#include "access/htup_details.h"
2227
#include "access/xact.h"
2328
#include "catalog/pg_proc.h"
@@ -259,7 +264,7 @@ pltcl_FinalizeNotifier(ClientData clientData)
259264
}
260265

261266
static void
262-
pltcl_SetTimer(Tcl_Time *timePtr)
267+
pltcl_SetTimer(CONST86 Tcl_Time *timePtr)
263268
{
264269
}
265270

@@ -285,7 +290,7 @@ pltcl_ServiceModeHook(int mode)
285290
}
286291

287292
static int
288-
pltcl_WaitForEvent(Tcl_Time *timePtr)
293+
pltcl_WaitForEvent(CONST86 Tcl_Time *timePtr)
289294
{
290295
return 0;
291296
}

0 commit comments

Comments
 (0)