mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
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.
This commit is contained in:
parent
b78647a0e6
commit
b1980f6d03
@ -18,6 +18,11 @@
|
|||||||
#define CONST84
|
#define CONST84
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* ... and for Tcl 8.6. */
|
||||||
|
#ifndef CONST86
|
||||||
|
#define CONST86
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "access/xact.h"
|
#include "access/xact.h"
|
||||||
#include "catalog/pg_proc.h"
|
#include "catalog/pg_proc.h"
|
||||||
@ -259,7 +264,7 @@ pltcl_FinalizeNotifier(ClientData clientData)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
pltcl_SetTimer(Tcl_Time *timePtr)
|
pltcl_SetTimer(CONST86 Tcl_Time *timePtr)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,7 +290,7 @@ pltcl_ServiceModeHook(int mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
pltcl_WaitForEvent(Tcl_Time *timePtr)
|
pltcl_WaitForEvent(CONST86 Tcl_Time *timePtr)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user