Skip to content

Commit

Permalink
Fix compiler warnings for maybe uninitialized and overshadowing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pashkinelfe committed Feb 19, 2024
1 parent e8167eb commit e379850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/backend/optimizer/plan/planner.c
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ preprocess_rowmarks(PlannerInfo *root)
{
RangeTblEntry *rte = lfirst_node(RangeTblEntry, l);
PlanRowMark *newrc;
RowRefType refType;
RowRefType refType = ROW_REF_TID;

i++;
if (!bms_is_member(i, rels))
Expand Down
6 changes: 3 additions & 3 deletions src/backend/postmaster/pgarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,12 +677,12 @@ pgarch_readyXlog(char *xlog)
{
for (int i = 0; i < arch_files->arch_files_size; i++)
{
char *xlog = arch_files->arch_files[i];
char *xlog1 = arch_files->arch_files[i];
char pathname[MAXPGPATH];

snprintf(pathname, MAXPGPATH, XLOGDIR "/%s", xlog);
snprintf(pathname, MAXPGPATH, XLOGDIR "/%s", xlog1);
ArchiveCallbacks->archive_preload_file_cb(archive_module_state,
xlog, pathname);
xlog1, pathname);
}
}

Expand Down

0 comments on commit e379850

Please sign in to comment.