Skip to content

Commit b29c557

Browse files
committed
Cleanup of timetravel compile warnings.
1 parent b6a1d25 commit b29c557

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
Datum timetravel(PG_FUNCTION_ARGS);
1717
Datum set_timetravel(PG_FUNCTION_ARGS);
18+
Datum get_timetravel(PG_FUNCTION_ARGS);
1819

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

34-
static TTOffList TTOff = {NULL,0};
35+
static TTOffList TTOff = {NULL,{0}};
3536

3637
static int findTTStatus(char *name);
3738
static EPlan *find_plan(char *ident, EPlan ** eplan, int *nplans);
@@ -306,7 +307,6 @@ timetravel(PG_FUNCTION_ARGS)
306307
void *pplan;
307308
Oid *ctypes;
308309
char sql[8192];
309-
int j;
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-
HeapTuple tmptuple;
359358
int chnattrs = 0;
360359
int chattrs[MaxAttrNum];
361360
Datum newvals[MaxAttrNum];
@@ -477,7 +476,7 @@ PG_FUNCTION_INFO_V1(get_timetravel);
477476
Datum
478477
get_timetravel(PG_FUNCTION_ARGS)
479478
{
480-
Name relname = PG_GETARG_NAME(0);
479+
Name relname = PG_GETARG_NAME(0);
481480
TTOffList *pp;
482481

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

0 commit comments

Comments
 (0)