Content-Length: 291327 | pFad | http://github.com/postgrespro/postgres/commit/b1980f6d03f79ab57da8f32aa8cd9677dbe1d58f

15 PL/Tcl: Fix compiler warnings with Tcl 8.6 · postgrespro/postgres@b1980f6 · GitHub
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

Lines changed: 7 additions & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/b1980f6d03f79ab57da8f32aa8cd9677dbe1d58f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy