Commit b29c557e authored by Bruce Momjian's avatar Bruce Momjian

Cleanup of timetravel compile warnings.

parent b6a1d25b
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
/* AbsoluteTime currabstime(void); */ /* AbsoluteTime currabstime(void); */
Datum timetravel(PG_FUNCTION_ARGS); Datum timetravel(PG_FUNCTION_ARGS);
Datum set_timetravel(PG_FUNCTION_ARGS); Datum set_timetravel(PG_FUNCTION_ARGS);
Datum get_timetravel(PG_FUNCTION_ARGS);
typedef struct typedef struct
{ {
...@@ -31,7 +32,7 @@ typedef struct _TTOffList ...@@ -31,7 +32,7 @@ typedef struct _TTOffList
char name[1]; char name[1];
} TTOffList; } TTOffList;
static TTOffList TTOff = {NULL,0}; static TTOffList TTOff = {NULL,{0}};
static int findTTStatus(char *name); static int findTTStatus(char *name);
static EPlan *find_plan(char *ident, EPlan ** eplan, int *nplans); static EPlan *find_plan(char *ident, EPlan ** eplan, int *nplans);
...@@ -306,7 +307,6 @@ timetravel(PG_FUNCTION_ARGS) ...@@ -306,7 +307,6 @@ timetravel(PG_FUNCTION_ARGS)
void *pplan; void *pplan;
Oid *ctypes; Oid *ctypes;
char sql[8192]; char sql[8192];
int j;
/* allocate ctypes for preparation */ /* allocate ctypes for preparation */
ctypes = (Oid *) palloc(natts * sizeof(Oid)); ctypes = (Oid *) palloc(natts * sizeof(Oid));
...@@ -355,7 +355,6 @@ timetravel(PG_FUNCTION_ARGS) ...@@ -355,7 +355,6 @@ timetravel(PG_FUNCTION_ARGS)
/* Tuple to return to upper Executor ... */ /* Tuple to return to upper Executor ... */
if(newtuple) if(newtuple)
{ /* UPDATE */ { /* UPDATE */
HeapTuple tmptuple;
int chnattrs = 0; int chnattrs = 0;
int chattrs[MaxAttrNum]; int chattrs[MaxAttrNum];
Datum newvals[MaxAttrNum]; Datum newvals[MaxAttrNum];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment