mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Clean up possibly-uninitialized-variable warnings reported by gcc 4.x.
This commit is contained in:
@ -58,6 +58,8 @@ gettoken(WORKSTATE * state, int4 *val)
|
|||||||
char nnn[16],
|
char nnn[16],
|
||||||
*curnnn;
|
*curnnn;
|
||||||
|
|
||||||
|
*val = 0; /* default result */
|
||||||
|
|
||||||
curnnn = nnn;
|
curnnn = nnn;
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
@ -197,13 +197,13 @@ pushval_asis(QPRS_STATE * state, int type, char *strval, int lenval, uint16 flag
|
|||||||
static int4
|
static int4
|
||||||
makepol(QPRS_STATE * state)
|
makepol(QPRS_STATE * state)
|
||||||
{
|
{
|
||||||
int4 val,
|
int4 val = 0,
|
||||||
type;
|
type;
|
||||||
int4 lenval;
|
int4 lenval = 0;
|
||||||
char *strval;
|
char *strval = NULL;
|
||||||
int4 stack[STACKDEPTH];
|
int4 stack[STACKDEPTH];
|
||||||
int4 lenstack = 0;
|
int4 lenstack = 0;
|
||||||
uint16 flag;
|
uint16 flag = 0;
|
||||||
|
|
||||||
while ((type = gettoken_query(state, &val, &lenval, &strval, &flag)) != END)
|
while ((type = gettoken_query(state, &val, &lenval, &strval, &flag)) != END)
|
||||||
{
|
{
|
||||||
|
@ -317,13 +317,13 @@ pushval_morph(QPRS_STATE * state, int typeval, char *strval, int lenval, int2 we
|
|||||||
static int4
|
static int4
|
||||||
makepol(QPRS_STATE * state, void (*pushval) (QPRS_STATE *, int, char *, int, int2))
|
makepol(QPRS_STATE * state, void (*pushval) (QPRS_STATE *, int, char *, int, int2))
|
||||||
{
|
{
|
||||||
int4 val,
|
int4 val = 0,
|
||||||
type;
|
type;
|
||||||
int4 lenval;
|
int4 lenval = 0;
|
||||||
char *strval;
|
char *strval = NULL;
|
||||||
int4 stack[STACKDEPTH];
|
int4 stack[STACKDEPTH];
|
||||||
int4 lenstack = 0;
|
int4 lenstack = 0;
|
||||||
int2 weight;
|
int2 weight = 0;
|
||||||
|
|
||||||
while ((type = gettoken_query(state, &val, &lenval, &strval, &weight)) != END)
|
while ((type = gettoken_query(state, &val, &lenval, &strval, &weight)) != END)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user