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

Commitb29c557

Browse files
committed
Cleanup of timetravel compile warnings.
1 parentb6a1d25 commitb29c557

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎contrib/spi/timetravel.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/* AbsoluteTime currabstime(void); */
1616
Datumtimetravel(PG_FUNCTION_ARGS);
1717
Datumset_timetravel(PG_FUNCTION_ARGS);
18+
Datumget_timetravel(PG_FUNCTION_ARGS);
1819

1920
typedefstruct
2021
{
@@ -31,7 +32,7 @@ typedef struct _TTOffList
3132
charname[1];
3233
}TTOffList;
3334

34-
staticTTOffListTTOff= {NULL,0};
35+
staticTTOffListTTOff= {NULL,{0}};
3536

3637
staticintfindTTStatus(char*name);
3738
staticEPlan*find_plan(char*ident,EPlan**eplan,int*nplans);
@@ -306,7 +307,6 @@ timetravel(PG_FUNCTION_ARGS)
306307
void*pplan;
307308
Oid*ctypes;
308309
charsql[8192];
309-
intj;
310310

311311
/* allocate ctypes for preparation */
312312
ctypes= (Oid*)palloc(natts*sizeof(Oid));
@@ -355,7 +355,6 @@ timetravel(PG_FUNCTION_ARGS)
355355
/* Tuple to return to upper Executor ... */
356356
if(newtuple)
357357
{/* UPDATE */
358-
HeapTupletmptuple;
359358
intchnattrs=0;
360359
intchattrs[MaxAttrNum];
361360
Datumnewvals[MaxAttrNum];
@@ -477,7 +476,7 @@ PG_FUNCTION_INFO_V1(get_timetravel);
477476
Datum
478477
get_timetravel(PG_FUNCTION_ARGS)
479478
{
480-
Namerelname=PG_GETARG_NAME(0);
479+
Namerelname=PG_GETARG_NAME(0);
481480
TTOffList*pp;
482481

483482
for(pp=TTOff.next;pp;pp=pp->next)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp