Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9493004

Browse files
Initialize variables to placate compiler.
Since commit012460e, some compilers have been warning that acouple of variables may be used uninitialized. There doesn'tappear to be any actual risk, so let's just initialize thesevariables to 0 to silence the compiler warnings.Discussion:https://postgr.es/m/20240317192927.GA3978212%40nathanxps13
1 parentd660701 commit9493004

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/commands/statscmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ AlterStatistics(AlterStatsStmt *stmt)
606606
boolrepl_null[Natts_pg_statistic_ext];
607607
boolrepl_repl[Natts_pg_statistic_ext];
608608
ObjectAddressaddress;
609-
intnewtarget;
609+
intnewtarget=0;
610610
boolnewtarget_default;
611611

612612
/* -1 was used in previous versions for the default setting */

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8711,7 +8711,7 @@ ATExecDropExpression(Relation rel, const char *colName, bool missing_ok, LOCKMOD
87118711
static ObjectAddress
87128712
ATExecSetStatistics(Relation rel, const char *colName, int16 colNum, Node *newValue, LOCKMODE lockmode)
87138713
{
8714-
intnewtarget;
8714+
intnewtarget = 0;
87158715
boolnewtarget_default;
87168716
Relationattrelation;
87178717
HeapTupletuple,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp