possibly used uninitialized things).
static void stack_init(void);
static bool stack_pop(SlonState * current);
+#ifdef UNUSED
static void stack_dump();
static void entry_dump(int i, SlonState * tos);
+#endif
static int initial_stack_size = 6;
/* ----------
}
}
+#ifdef UNUSED
static void
stack_dump()
{
slon_log(SLON_DEBUG2, "actor[%s] activity[%s] event_type[%s]\n",
tos->actor, tos->activity, tos->event_type);
}
+#endif /* UNUSED */
static void compress_actionseq(const char *ssy_actionseq, SlonDString * action_subquery);
+#ifdef UNUSED
static int check_set_subscriber(int set_id, int node_id, PGconn *local_dbconn);
+#endif
/* ----------
* slon_remoteWorkerThread
slon_log(SLON_DEBUG4, " compressed actionseq subquery... %s\n", dstring_data(action_subquery));
}
+#ifdef UNUSED
/**
* Checks to see if the node specified is a member of the set.
*
PQclear(res);
return 1;
}
+#endif /* UNUSED */
static void
init_perfmon(PerfMon * perf_info)
}
adminfo2->last_event = ev_id;
- printf("debug: waiting for %d,%ld on %d\n",
+ printf("debug: waiting for %d," INT64_FORMAT " on %d\n",
wait_event.wait_origin, ev_id, wait_event.wait_on);
rc = slonik_wait_event(&wait_event);
if (rc < 0)
event_id = PQgetvalue(result, 0, 0);
if (event_id != NULL)
cur_event_id = strtoll(event_id, NULL, 10);
+ else
+ cur_event_id = -1;
if (cur_event_id > max_event_id)
max_event_id = cur_event_id;
}
destinationfname = dstring_data(&destfname);
}
+ else
+ {
+ /*
+ * This is to avoid a "possibly used uninitialized" warning.
+ */
+ dstring_data(&destfname) = NULL;
+ }
for (cmd = pre_processing_commands; cmd != NULL; cmd = cmd->next)
{
errlog(LOG_ERROR, "cannot open %s - %s\n",
dstring_data(&destfname), strerror(errno));
fclose(fp);
+ destinationfname = NULL;
dstring_free(&destfname);
return 1;
}