Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1980f6

Browse files
committed
PL/Tcl: Fix compiler warnings with Tcl 8.6
Some constification was added in the Tcl APIs, so add the modifiers inPL/Tcl as well.
1 parentb78647a commitb1980f6

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
#defineCONST84
1919
#endif
2020

21+
/* ... and for Tcl 8.6. */
22+
#ifndefCONST86
23+
#defineCONST86
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
staticvoid
262-
pltcl_SetTimer(Tcl_Time*timePtr)
267+
pltcl_SetTimer(CONST86Tcl_Time*timePtr)
263268
{
264269
}
265270

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

287292
staticint
288-
pltcl_WaitForEvent(Tcl_Time*timePtr)
293+
pltcl_WaitForEvent(CONST86Tcl_Time*timePtr)
289294
{
290295
return0;
291296
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp