Skip to content

Commit 289f0cc

Browse files
committed
clear the build warnings
1 parent 3d187a8 commit 289f0cc

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

src/backend/commands/sequence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ process_owned_by(Relation seqrel, List *owned_by, bool for_identity)
23992399
DependencyType deptype;
24002400
int nnames;
24012401
Relation tablerel;
2402-
AttrNumber attnum;
2402+
AttrNumber attnum = InvalidAttrNumber;
24032403
char *seqname;
24042404

24052405
deptype = for_identity ? DEPENDENCY_INTERNAL : DEPENDENCY_AUTO;

src/backend/commands/tablecmds.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15667,7 +15667,7 @@ RememberAllDependentForRebuilding(AlteredTableInfo *tab, AlterTableType subtype,
1566715667
ScanKeyData key[3];
1566815668
SysScanDesc scan;
1566915669
HeapTuple depTup;
15670-
ObjectFunOrPkg *dependentFuncPkgOids;
15670+
ObjectFunOrPkg *dependentFuncPkgOids = NULL;
1567115671
bool FuncPkgDepend = false;
1567215672

1567315673
if(NULL != numDependentFuncPkgOids &&
@@ -15677,6 +15677,12 @@ RememberAllDependentForRebuilding(AlteredTableInfo *tab, AlterTableType subtype,
1567715677
FuncPkgDepend = true;
1567815678
dependentFuncPkgOids = *dependentFuncPkg;
1567915679
}
15680+
else
15681+
{
15682+
dependentFuncPkgOids = (ObjectFunOrPkg *)
15683+
palloc((*maxDependentFuncPkgOids) * sizeof(ObjectFunOrPkg));
15684+
}
15685+
1568015686

1568115687
Assert(subtype == AT_AlterColumnType || subtype == AT_SetExpression);
1568215688

src/backend/executor/execExpr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5112,7 +5112,7 @@ ExecInitFuncWithOutParams(Expr *node, ExprState *state,
51125112
{
51135113
FuncExpr *funcexpr = (FuncExpr *) node;
51145114
Oid funcOid = funcexpr->funcid;
5115-
HeapTuple func_tuple;
5115+
HeapTuple func_tuple = NULL;
51165116
Oid *argtypes = NULL;
51175117
char **argnames = NULL;
51185118
char *argmodes = NULL;

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19124,7 +19124,7 @@ dumpSequence(Archive *fout, const TableInfo *tbinfo)
1912419124
default_minv = is_ascending ? 1 : PG_INT64_MIN;
1912519125
default_maxv = is_ascending ? PG_INT64_MAX : -1;
1912619126
}
19127-
else if (db_mode == DB_PG)
19127+
else
1912819128
{
1912919129
pg_fatal("unrecognized sequence type: %d", seq->seqtype);
1913019130
default_minv = default_maxv = 0; /* keep compiler quiet */

src/bin/psql/startup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ main(int argc, char *argv[])
396396
}
397397
else if (cell->action == ACT_SINGLE_SLASH)
398398
{
399-
PsqlScanState scan_state;
400-
ConditionalStack cond_stack;
399+
PsqlScanState scan_state = NULL;
400+
ConditionalStack cond_stack = NULL;
401401

402402
pg_logging_config(PG_LOG_FLAG_TERSE);
403403

src/pl/plisql/src/pl_package.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,9 +2730,7 @@ static void
27302730
plisql_remove_function_references(PLiSQL_function *func, PackageCacheItem *item)
27312731
{
27322732
PLiSQL_package *psource = (PLiSQL_package *) item->source;
2733-
int pre_len;
2734-
2735-
pre_len = list_length(psource->source.funclist);
2733+
int pre_len = list_length(psource->source.funclist);
27362734

27372735
psource->source.funclist = list_delete_ptr(psource->source.funclist, (void *) func);
27382736

0 commit comments

Comments
 (0)