controldata_utils.c: In function ‘get_controlfile’: controldata_utils.c:51:29: warning: declaration of ‘DataDir’ shadows a global declaration [-Wshadow] get_controlfile(const char *DataDir, bool *crc_ok_p) ^ In file included from ../../src/include/utils/backend_status.h:15:0, from ../../src/include/pgstat.h:18, from controldata_utils.c:37: ../../src/include/miscadmin.h:159:26: warning: shadowed declaration is here [-Wshadow] extern PGDLLIMPORT char *DataDir; ^ ========== controldata_utils.c: In function ‘update_controlfile’: controldata_utils.c:156:32: warning: declaration of ‘DataDir’ shadows a global declaration [-Wshadow] update_controlfile(const char *DataDir, ^ In file included from ../../src/include/utils/backend_status.h:15:0, from ../../src/include/pgstat.h:18, from controldata_utils.c:37: ../../src/include/miscadmin.h:159:26: warning: shadowed declaration is here [-Wshadow] extern PGDLLIMPORT char *DataDir; ^ ========== brin.c: In function ‘bringetbitmap’: brin.c:484:16: warning: declaration of ‘tmp’ shadows a previous local [-Wshadow] FmgrInfo *tmp; ^ brin.c:378:11: warning: shadowed declaration is here [-Wshadow] char *tmp PG_USED_FOR_ASSERTS_ONLY; ^ ========== brin.c:675:13: warning: declaration of ‘keyno’ shadows a previous local [-Wshadow] int keyno; ^ brin.c:375:8: warning: shadowed declaration is here [-Wshadow] int keyno; ^ ========== brin_minmax_multi.c: In function ‘range_serialize’: brin_minmax_multi.c:623:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ brin_minmax_multi.c:584:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== brin_minmax_multi.c:632:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ brin_minmax_multi.c:584:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== brin_minmax_multi.c: In function ‘brin_minmax_multi_summary_out’: brin_minmax_multi.c:3038:18: warning: declaration of ‘str’ shadows a previous local [-Wshadow] StringInfoData str; ^ brin_minmax_multi.c:3004:17: warning: shadowed declaration is here [-Wshadow] StringInfoData str; ^ ========== brin_minmax_multi.c:3081:18: warning: declaration of ‘str’ shadows a previous local [-Wshadow] StringInfoData str; ^ brin_minmax_multi.c:3004:17: warning: shadowed declaration is here [-Wshadow] StringInfoData str; ^ ========== ginget.c: In function ‘startScanEntry’: ginget.c:399:10: warning: declaration of ‘page’ shadows a previous local [-Wshadow] Page page; ^ ginget.c:322:8: warning: shadowed declaration is here [-Wshadow] Page page; ^ ========== gist.c: In function ‘gistplacetopage’: gist.c:379:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ gist.c:236:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== gistbuild.c:1131:23: warning: declaration of ‘splitinfo’ shadows a previous local [-Wshadow] GISTPageSplitInfo *splitinfo = lfirst(lc); ^ gistbuild.c:1031:11: warning: shadowed declaration is here [-Wshadow] List *splitinfo; ^ ========== gistbuildbuffers.c: In function ‘gistRelocateBuildBuffersOnSplit’: gistbuildbuffers.c:637:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i, ^ gistbuildbuffers.c:547:5: warning: shadowed declaration is here [-Wshadow] i; ^ ========== hash_xlog.c: In function ‘hash_xlog_add_ovfl_page’: hash_xlog.c:243:13: warning: declaration of ‘data’ shadows a previous local [-Wshadow] char *data; ^ hash_xlog.c:189:11: warning: shadowed declaration is here [-Wshadow] char *data; ^ ========== heapam.c: In function ‘heap_insert’: heapam.c:2179:9: warning: declaration of ‘page’ shadows a previous local [-Wshadow] Page page = BufferGetPage(buffer); ^ heapam.c:2066:8: warning: shadowed declaration is here [-Wshadow] Page page = NULL; ^ ========== heapam.c: In function ‘FreezeMultiXactId’: heapam.c:6305:18: warning: declaration of ‘xid’ shadows a previous local [-Wshadow] TransactionId xid = members[i].xid; ^ heapam.c:6164:16: warning: shadowed declaration is here [-Wshadow] TransactionId xid = InvalidTransactionId; ^ ========== vacuumlazy.c: In function ‘lazy_scan_heap’: vacuumlazy.c:1038:11: warning: declaration of ‘buf’ shadows a previous local [-Wshadow] Buffer buf; ^ vacuumlazy.c:895:17: warning: shadowed declaration is here [-Wshadow] StringInfoData buf; ^ ========== spgdoinsert.c: In function ‘moveLeafs’: spgdoinsert.c:423:19: warning: declaration of ‘it’ shadows a previous local [-Wshadow] SpGistLeafTuple it; ^ spgdoinsert.c:397:18: warning: shadowed declaration is here [-Wshadow] SpGistLeafTuple it; ^ ========== clog.c: In function ‘TransactionGroupUpdateXidStatus’: clog.c:513:14: warning: declaration of ‘proc’ shadows a previous local [-Wshadow] PGPROC *proc = &ProcGlobal->allProcs[nextidx]; ^ clog.c:418:13: warning: shadowed declaration is here [-Wshadow] PGPROC *proc = MyProc; ^ ========== clog.c:542:14: warning: declaration of ‘proc’ shadows a previous local [-Wshadow] PGPROC *proc = &ProcGlobal->allProcs[wakeidx]; ^ clog.c:418:13: warning: shadowed declaration is here [-Wshadow] PGPROC *proc = MyProc; ^ ========== multixact.c: In function ‘mXactCachePut’: multixact.c:1614:18: warning: declaration of ‘entry’ shadows a previous local [-Wshadow] mXactCacheEnt *entry; ^ multixact.c:1584:17: warning: shadowed declaration is here [-Wshadow] mXactCacheEnt *entry; ^ ========== xlog.c: In function ‘XLogFileInit’: xlog.c:3412:9: warning: declaration of ‘save_errno’ shadows a previous local [-Wshadow] int save_errno = errno; ^ xlog.c:3296:8: warning: shadowed declaration is here [-Wshadow] int save_errno; ^ ========== xlog.c: In function ‘exitArchiveRecovery’: xlog.c:5668:10: warning: declaration of ‘xlogfname’ shadows a previous local [-Wshadow] char xlogfname[MAXFNAMELEN]; ^ xlog.c:5601:8: warning: shadowed declaration is here [-Wshadow] char xlogfname[MAXFNAMELEN]; ^ ========== xlog.c: In function ‘StartupXLOG’: xlog.c:7447:18: warning: declaration of ‘checkPoint’ shadows a previous local [-Wshadow] CheckPoint checkPoint; ^ xlog.c:6453:13: warning: shadowed declaration is here [-Wshadow] CheckPoint checkPoint; ^ ========== xlogreader.c: In function ‘XLogReaderAllocate’: xlogreader.c:82:24: warning: declaration of ‘wal_segment_size’ shadows a global declaration [-Wshadow] XLogReaderAllocate(int wal_segment_size, const char *waldir, ^ In file included from ../../../../src/include/replication/origin.h:13:0, from xlogreader.c:28: ../../../../src/include/access/xlog.h:107:12: warning: shadowed declaration is here [-Wshadow] extern int wal_segment_size; ^ ========== heap.c: In function ‘heap_drop_with_catalog’: heap.c:1971:12: warning: declaration of ‘rel’ shadows a previous local [-Wshadow] Relation rel; ^ heap.c:1907:11: warning: shadowed declaration is here [-Wshadow] Relation rel; ^ ========== heap.c:1972:13: warning: declaration of ‘tuple’ shadows a previous local [-Wshadow] HeapTuple tuple; ^ heap.c:1908:12: warning: shadowed declaration is here [-Wshadow] HeapTuple tuple; ^ ========== namespace.c: In function ‘FuncnameGetCandidates’: namespace.c:1114:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ namespace.c:952:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== namespace.c:1127:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ namespace.c:952:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== objectaddress.c: In function ‘pg_get_object_address’: objectaddress.c:2119:12: warning: declaration of ‘nulls’ shadows a previous local [-Wshadow] bool *nulls; ^ objectaddress.c:2098:8: warning: shadowed declaration is here [-Wshadow] bool nulls[3]; ^ ========== objectaddress.c:2137:12: warning: declaration of ‘nulls’ shadows a previous local [-Wshadow] bool *nulls; ^ objectaddress.c:2098:8: warning: shadowed declaration is here [-Wshadow] bool nulls[3]; ^ ========== objectaddress.c:2175:12: warning: declaration of ‘nulls’ shadows a previous local [-Wshadow] bool *nulls; ^ objectaddress.c:2098:8: warning: shadowed declaration is here [-Wshadow] bool nulls[3]; ^ ========== parse_clause.c: In function ‘transformRangeFunction’: parse_clause.c:549:17: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ parse_clause.c:472:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== In file included from ../../../src/include/access/tupdesc.h:19:0, from ../../../src/include/access/htup_details.h:19, from parse_clause.c:18: parse_clause.c:551:13: warning: declaration of ‘lc__state’ shadows a previous local [-Wshadow] foreach(lc, fc->args) ^ ../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ parse_clause.c:502:10: warning: shadowed declaration is here [-Wshadow] foreach(lc, r->functions) ^ ========== ../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ parse_target.c:1653:13: warning: declaration of ‘levelsup’ shadows a parameter [-Wshadow] Index levelsup; ^ parse_target.c:1510:56: warning: shadowed declaration is here [-Wshadow] expandRecordVariable(ParseState *pstate, Var *var, int levelsup) ^ ========== copyfrom.c: In function ‘BeginCopyFrom’: copyfrom.c:1258:10: warning: declaration of ‘attnum’ shadows a previous local [-Wshadow] int attnum = lfirst_int(cur); ^ copyfrom.c:1202:8: warning: shadowed declaration is here [-Wshadow] int attnum; ^ ========== copyfrom.c:1281:10: warning: declaration of ‘attnum’ shadows a previous local [-Wshadow] int attnum = lfirst_int(cur); ^ copyfrom.c:1202:8: warning: shadowed declaration is here [-Wshadow] int attnum; ^ ========== copyfrom.c:1305:10: warning: declaration of ‘attnum’ shadows a previous local [-Wshadow] int attnum = lfirst_int(cur); ^ copyfrom.c:1202:8: warning: shadowed declaration is here [-Wshadow] int attnum; ^ ========== functioncmds.c: In function ‘compute_return_type’: functioncmds.c:122:13: warning: declaration of ‘aclresult’ shadows a previous local [-Wshadow] AclResult aclresult; ^ functioncmds.c:96:12: warning: shadowed declaration is here [-Wshadow] AclResult aclresult; ^ ========== functioncmds.c: In function ‘CreateFunction’: functioncmds.c:1110:13: warning: declaration of ‘aclresult’ shadows a previous local [-Wshadow] AclResult aclresult; ^ functioncmds.c:1025:12: warning: shadowed declaration is here [-Wshadow] AclResult aclresult; ^ ========== indexcmds.c: In function ‘DefineIndex’: indexcmds.c:913:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ indexcmds.c:551:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== publicationcmds.c: In function ‘parse_publication_options’: publicationcmds.c:85:16: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ publicationcmds.c:64:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== In file included from ../../../src/include/access/tupdesc.h:19:0, from ../../../src/include/utils/relcache.h:18, from ../../../src/include/access/genam.h:21, from publicationcmds.c:17: publicationcmds.c:110:12: warning: declaration of ‘lc__state’ shadows a previous local [-Wshadow] foreach(lc, publish_list) ^ ../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ publicationcmds.c:77:10: warning: shadowed declaration is here [-Wshadow] foreach(lc, options) ^ ========== ../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ schemacmds.c: In function ‘CreateSchemaCommand’: schemacmds.c:180:12: warning: declaration of ‘stmt’ shadows a parameter [-Wshadow] Node *stmt = (Node *) lfirst(parsetree_item); ^ schemacmds.c:50:39: warning: shadowed declaration is here [-Wshadow] CreateSchemaCommand(CreateSchemaStmt *stmt, const char *queryString, ^ ========== sequence.c: In function ‘nextval_internal’: sequence.c:704:12: warning: declaration of ‘buf’ shadows a previous local [-Wshadow] char buf[100]; ^ sequence.c:583:10: warning: shadowed declaration is here [-Wshadow] Buffer buf; ^ ========== sequence.c:727:12: warning: declaration of ‘buf’ shadows a previous local [-Wshadow] char buf[100]; ^ sequence.c:583:10: warning: shadowed declaration is here [-Wshadow] Buffer buf; ^ ========== statscmds.c: In function ‘CreateStatistics’: statscmds.c:274:13: warning: declaration of ‘expr’ shadows a previous local [-Wshadow] Node *expr = selem->expr; ^ statscmds.c:223:12: warning: shadowed declaration is here [-Wshadow] Node *expr = (Node *) lfirst(cell); ^ ========== subscriptioncmds.c: In function ‘parse_subscription_options’: subscriptioncmds.c:69:17: warning: declaration of ‘synchronous_commit’ shadows a global declaration [-Wshadow] char **synchronous_commit, ^ In file included from subscriptioncmds.c:19:0: ../../../src/include/access/xact.h:83:12: warning: shadowed declaration is here [-Wshadow] extern int synchronous_commit; ^ ========== subscriptioncmds.c: In function ‘CreateSubscription’: subscriptioncmds.c:340:11: warning: declaration of ‘synchronous_commit’ shadows a global declaration [-Wshadow] char *synchronous_commit; ^ In file included from subscriptioncmds.c:19:0: ../../../src/include/access/xact.h:83:12: warning: shadowed declaration is here [-Wshadow] extern int synchronous_commit; ^ ========== subscriptioncmds.c:462:20: warning: declaration of ‘wrconn’ shadows a global declaration [-Wshadow] WalReceiverConn *wrconn; ^ In file included from subscriptioncmds.c:40:0: ../../../src/include/replication/worker_internal.h:65:32: warning: shadowed declaration is here [-Wshadow] extern struct WalReceiverConn *wrconn; ^ ========== subscriptioncmds.c: In function ‘AlterSubscription_refresh’: subscriptioncmds.c:559:19: warning: declaration of ‘wrconn’ shadows a global declaration [-Wshadow] WalReceiverConn *wrconn; ^ In file included from subscriptioncmds.c:40:0: ../../../src/include/replication/worker_internal.h:65:32: warning: shadowed declaration is here [-Wshadow] extern struct WalReceiverConn *wrconn; ^ ========== subscriptioncmds.c: In function ‘AlterSubscription’: subscriptioncmds.c:802:14: warning: declaration of ‘synchronous_commit’ shadows a global declaration [-Wshadow] char *synchronous_commit; ^ In file included from subscriptioncmds.c:19:0: ../../../src/include/access/xact.h:83:12: warning: shadowed declaration is here [-Wshadow] extern int synchronous_commit; ^ ========== subscriptioncmds.c: In function ‘DropSubscription’: subscriptioncmds.c:1065:19: warning: declaration of ‘wrconn’ shadows a global declaration [-Wshadow] WalReceiverConn *wrconn; ^ In file included from subscriptioncmds.c:40:0: ../../../src/include/replication/worker_internal.h:65:32: warning: shadowed declaration is here [-Wshadow] extern struct WalReceiverConn *wrconn; ^ ========== subscriptioncmds.c: In function ‘ReplicationSlotDropAtPubNode’: subscriptioncmds.c:1320:47: warning: declaration of ‘wrconn’ shadows a global declaration [-Wshadow] ReplicationSlotDropAtPubNode(WalReceiverConn *wrconn, char *slotname, bool missing_ok) ^ In file included from subscriptioncmds.c:40:0: ../../../src/include/replication/worker_internal.h:65:32: warning: shadowed declaration is here [-Wshadow] extern struct WalReceiverConn *wrconn; ^ ========== subscriptioncmds.c: In function ‘fetch_table_list’: subscriptioncmds.c:1473:35: warning: declaration of ‘wrconn’ shadows a global declaration [-Wshadow] fetch_table_list(WalReceiverConn *wrconn, List *publications) ^ In file included from subscriptioncmds.c:40:0: ../../../src/include/replication/worker_internal.h:65:32: warning: shadowed declaration is here [-Wshadow] extern struct WalReceiverConn *wrconn; ^ ========== tablecmds.c: In function ‘CloneFkReferencing’: tablecmds.c:9889:15: warning: declaration of ‘cell’ shadows a previous local [-Wshadow] ListCell *cell; ^ tablecmds.c:9839:14: warning: shadowed declaration is here [-Wshadow] ListCell *cell; ^ ========== In file included from ../../../src/include/access/tupdesc.h:19:0, from ../../../src/include/access/attmap.h:18, from tablecmds.c:17: tablecmds.c:9926:11: warning: declaration of ‘cell__state’ shadows a previous local [-Wshadow] foreach(cell, partFKs) ^ ../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ tablecmds.c:9870:10: warning: shadowed declaration is here [-Wshadow] foreach(cell, clone) ^ ========== ../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ tablecmds.c: In function ‘ATExecAlterConstrRecurse’: tablecmds.c:10379:14: warning: declaration of ‘copyTuple’ shadows a previous local [-Wshadow] HeapTuple copyTuple; ^ tablecmds.c:10344:13: warning: shadowed declaration is here [-Wshadow] HeapTuple copyTuple; ^ ========== tablecmds.c: In function ‘ATPostAlterTypeParse’: tablecmds.c:12785:20: warning: declaration of ‘cmd’ shadows a parameter [-Wshadow] AlterTableCmd *cmd = castNode(AlterTableCmd, lfirst(lcmd)); ^ tablecmds.c:12694:67: warning: shadowed declaration is here [-Wshadow] ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId, char *cmd, ========== ^ tablecmds.c:12858:20: warning: declaration of ‘cmd’ shadows a parameter [-Wshadow] AlterTableCmd *cmd = makeNode(AlterTableCmd); ^ tablecmds.c:12694:67: warning: shadowed declaration is here [-Wshadow] ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId, char *cmd, ========== ^ tablecmds.c: In function ‘PreCommit_on_commit_actions’: tablecmds.c:16230:15: warning: declaration of ‘l’ shadows a previous local [-Wshadow] ListCell *l; ^ tablecmds.c:16182:14: warning: shadowed declaration is here [-Wshadow] ListCell *l; ^ ========== tablecmds.c: In function ‘AttachPartitionEnsureIndexes’: tablecmds.c:17508:10: warning: declaration of ‘constraintOid’ shadows a previous local [-Wshadow] Oid constraintOid; ^ tablecmds.c:17434:9: warning: shadowed declaration is here [-Wshadow] Oid constraintOid; ^ ========== trigger.c: In function ‘CreateTrigger’: trigger.c:1141:16: warning: declaration of ‘l’ shadows a previous local [-Wshadow] ListCell *l; ^ trigger.c:1125:15: warning: shadowed declaration is here [-Wshadow] ListCell *l; ^ ========== trigger.c:1142:13: warning: declaration of ‘idxs’ shadows a previous local [-Wshadow] List *idxs = NIL; ^ trigger.c:1123:12: warning: shadowed declaration is here [-Wshadow] List *idxs = NIL; ^ ========== trigger.c:1160:13: warning: declaration of ‘qual’ shadows a previous local [-Wshadow] Node *qual; ^ trigger.c:160:11: warning: shadowed declaration is here [-Wshadow] char *qual; ^ ========== vacuum.c: In function ‘ExecVacuum’: vacuum.c:215:15: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ vacuum.c:110:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== In file included from execExprInterp.c:224:0: ../../../src/include/lib/simplehash.h: In function ‘saophash_grow’: ../../../src/include/lib/simplehash.h:548:12: warning: declaration of ‘startelem’ shadows a previous local [-Wshadow] uint32 startelem; ^ ../../../src/include/lib/simplehash.h:485:10: warning: shadowed declaration is here [-Wshadow] uint32 startelem = 0; ^ ========== execExprInterp.c: In function ‘ExecInterpExpr’: execExprInterp.c:402:27: warning: declaration of ‘dispatch_table’ shadows a global declaration [-Wshadow] static const void *const dispatch_table[] = { ^ execExprInterp.c:109:21: warning: shadowed declaration is here [-Wshadow] static const void **dispatch_table = NULL; ^ ========== In file included from execGrouping.c:46:0: ../../../src/include/lib/simplehash.h: In function ‘tuplehash_grow’: ../../../src/include/lib/simplehash.h:548:12: warning: declaration of ‘startelem’ shadows a previous local [-Wshadow] uint32 startelem; ^ ../../../src/include/lib/simplehash.h:485:10: warning: shadowed declaration is here [-Wshadow] uint32 startelem = 0; ^ ========== execPartition.c: In function ‘ExecInitPartitionInfo’: execPartition.c:762:11: warning: declaration of ‘found_whole_row’ shadows a previous local [-Wshadow] bool found_whole_row; ^ execPartition.c:504:8: warning: shadowed declaration is here [-Wshadow] bool found_whole_row; ^ ========== execPartition.c: In function ‘ExecFindInitialMatchingSubPlans’: execPartition.c:1913:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ execPartition.c:1858:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== nodeAgg.c: In function ‘finalize_aggregates’: nodeAgg.c:1352:9: warning: declaration of ‘transno’ shadows a previous local [-Wshadow] int transno = peragg->transno; ^ nodeAgg.c:1317:8: warning: shadowed declaration is here [-Wshadow] int transno; ^ ========== nodeAgg.c: In function ‘ExecInitAgg’: nodeAgg.c:3563:11: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i = 0; ^ nodeAgg.c:3266:8: warning: shadowed declaration is here [-Wshadow] int i = 0; ^ ========== nodeAgg.c:3656:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ nodeAgg.c:3266:8: warning: shadowed declaration is here [-Wshadow] int i = 0; ^ ========== nodeAgg.c:3987:20: warning: declaration of ‘phase’ shadows a previous local [-Wshadow] AggStatePerPhase phase = &aggstate->phases[phaseidx]; ^ nodeAgg.c:3259:8: warning: shadowed declaration is here [-Wshadow] int phase; ^ ========== nodeHash.c: In function ‘ExecParallelHashIncreaseNumBatches’: nodeHash.c:1086:11: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ nodeHash.c:1061:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== In file included from nodeResultCache.c:148:0: ../../../src/include/lib/simplehash.h: In function ‘resultcache_grow’: ../../../src/include/lib/simplehash.h:548:12: warning: declaration of ‘startelem’ shadows a previous local [-Wshadow] uint32 startelem; ^ ../../../src/include/lib/simplehash.h:485:10: warning: shadowed declaration is here [-Wshadow] uint32 startelem = 0; ^ ========== nodeResultCache.c: In function ‘remove_cache_entry’: nodeResultCache.c:315:22: warning: declaration of ‘entry’ shadows a parameter [-Wshadow] ResultCacheEntry *entry = &rcstate->hashtable->data[i]; ^ nodeResultCache.c:295:65: warning: shadowed declaration is here [-Wshadow] remove_cache_entry(ResultCacheState *rcstate, ResultCacheEntry *entry) ========== ^ nodeValuesscan.c: In function ‘ValuesNext’: nodeValuesscan.c:145:16: warning: declaration of ‘estate’ shadows a previous local [-Wshadow] ExprState *estate = (ExprState *) lfirst(lc); ^ nodeValuesscan.c:51:13: warning: shadowed declaration is here [-Wshadow] EState *estate; ^ ========== nodeWindowAgg.c: In function ‘ExecWindowAgg’: nodeWindowAgg.c:2043:16: warning: declaration of ‘econtext’ shadows a previous local [-Wshadow] ExprContext *econtext = winstate->ss.ps.ps_ExprContext; ^ nodeWindowAgg.c:2026:15: warning: shadowed declaration is here [-Wshadow] ExprContext *econtext; ^ ========== spi.c: In function ‘_SPI_execute_plan’: spi.c:2363:13: warning: declaration of ‘stmt_list’ shadows a previous local [-Wshadow] List *stmt_list; ^ spi.c:2351:12: warning: shadowed declaration is here [-Wshadow] List *stmt_list; ^ ========== integerset.c: In function ‘intset_is_member’: integerset.c:568:9: warning: declaration of ‘itemno’ shadows a previous local [-Wshadow] int itemno; ^ integerset.c:560:8: warning: shadowed declaration is here [-Wshadow] int itemno; ^ ========== auth.c: In function ‘interpret_ident_response’: auth.c:1799:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; /* Index into *ident_user */ ^ auth.c:1767:10: warning: shadowed declaration is here [-Wshadow] int i; /* Index into *response_type */ ^ ========== be-secure-common.c: In function ‘check_ssl_key_file_permissions’: be-secure-common.c:132:44: warning: declaration of ‘ssl_key_file’ shadows a global declaration [-Wshadow] check_ssl_key_file_permissions(const char *ssl_key_file, bool isServerStart) ^ In file included from be-secure-common.c:26:0: ../../../src/include/libpq/libpq.h:90:14: warning: shadowed declaration is here [-Wshadow] extern char *ssl_key_file; ^ ========== main.c: In function ‘startup_hacks’: main.c:227:27: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] startup_hacks(const char *progname) ^ main.c:46:13: warning: shadowed declaration is here [-Wshadow] const char *progname; ^ ========== main.c: In function ‘help’: main.c:307:18: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] help(const char *progname) ^ main.c:46:13: warning: shadowed declaration is here [-Wshadow] const char *progname; ^ ========== main.c: In function ‘check_root’: main.c:367:24: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] check_root(const char *progname) ^ main.c:46:13: warning: shadowed declaration is here [-Wshadow] const char *progname; ^ ========== outfuncs.c: In function ‘_outForeignKeyOptInfo’: outfuncs.c:116:12: warning: declaration of ‘i’ shadows a previous local [-Wshadow] for (int i = 0; i < len; i++) \ ^ outfuncs.c:2415:2: note: in expansion of macro ‘WRITE_ATTRNUMBER_ARRAY’ WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys); ^ outfuncs.c:2408:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== outfuncs.c:116:12: warning: declaration of ‘i’ shadows a previous local [-Wshadow] for (int i = 0; i < len; i++) \ ^ outfuncs.c:2416:2: note: in expansion of macro ‘WRITE_ATTRNUMBER_ARRAY’ WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys); ^ outfuncs.c:2408:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== outfuncs.c:123:12: warning: declaration of ‘i’ shadows a previous local [-Wshadow] for (int i = 0; i < len; i++) \ ^ outfuncs.c:2417:2: note: in expansion of macro ‘WRITE_OID_ARRAY’ WRITE_OID_ARRAY(conpfeqop, node->nkeys); ^ outfuncs.c:2408:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== In file included from tidbitmap.c:252:0: ../../../src/include/lib/simplehash.h: In function ‘pagetable_grow’: ../../../src/include/lib/simplehash.h:548:12: warning: declaration of ‘startelem’ shadows a previous local [-Wshadow] uint32 startelem; ^ ../../../src/include/lib/simplehash.h:485:10: warning: shadowed declaration is here [-Wshadow] uint32 startelem = 0; ^ ========== costsize.c: In function ‘append_nonpartial_cost’: costsize.c:2112:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ costsize.c:2073:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== costsize.c: In function ‘cost_append’: costsize.c:2171:14: warning: declaration of ‘subpath’ shadows a previous local [-Wshadow] Path *subpath = (Path *) lfirst(l); ^ costsize.c:2160:13: warning: shadowed declaration is here [-Wshadow] Path *subpath = (Path *) linitial(apath->subpaths); ^ ========== equivclass.c: In function ‘get_eclass_for_sort_expr’: equivclass.c:758:16: warning: declaration of ‘rel’ shadows a parameter [-Wshadow] RelOptInfo *rel = root->simple_rel_array[i]; ^ equivclass.c:628:15: warning: shadowed declaration is here [-Wshadow] Relids rel, ^ ========== indxpath.c: In function ‘create_index_paths’: indxpath.c:364:15: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ indxpath.c:244:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== indxpath.c: In function ‘generate_bitmap_or_paths’: indxpath.c:1306:19: warning: declaration of ‘rinfo’ shadows a previous local [-Wshadow] RestrictInfo *rinfo = castNode(RestrictInfo, orarg); ^ indxpath.c:1270:17: warning: shadowed declaration is here [-Wshadow] RestrictInfo *rinfo = lfirst_node(RestrictInfo, lc); ^ ========== indxpath.c: In function ‘match_clause_to_index’: indxpath.c:2204:17: warning: declaration of ‘iclause’ shadows a previous local [-Wshadow] IndexClause *iclause = (IndexClause *) lfirst(lc); ^ indxpath.c:2198:16: warning: shadowed declaration is here [-Wshadow] IndexClause *iclause; ^ ========== tidpath.c: In function ‘TidQualFromRestrictInfoList’: tidpath.c:308:20: warning: declaration of ‘rinfo’ shadows a previous local [-Wshadow] RestrictInfo *rinfo = castNode(RestrictInfo, orarg); ^ tidpath.c:283:17: warning: shadowed declaration is here [-Wshadow] RestrictInfo *rinfo = lfirst_node(RestrictInfo, l); ^ ========== createplan.c: In function ‘create_append_plan’: createplan.c:1159:12: warning: declaration of ‘plan’ shadows a previous local [-Wshadow] Plan *plan; ^ createplan.c:1130:13: warning: shadowed declaration is here [-Wshadow] Append *plan; ^ ========== createplan.c: In function ‘create_minmaxagg_plan’: createplan.c:2478:12: warning: declaration of ‘plan’ shadows a previous local [-Wshadow] Plan *plan; ^ createplan.c:2468:13: warning: shadowed declaration is here [-Wshadow] Result *plan; ^ ========== planner.c: In function ‘preprocess_grouping_sets’: planner.c:1925:15: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ planner.c:1912:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== planner.c: In function ‘get_number_of_groups’: planner.c:3177:17: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ planner.c:3167:16: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== In file included from ../../../../src/include/access/tupdesc.h:19:0, from ../../../../src/include/utils/relcache.h:18, from ../../../../src/include/access/genam.h:21, from planner.c:21: planner.c:3184:13: warning: declaration of ‘lc__state’ shadows a previous local [-Wshadow] forboth(lc, rollup->gsets, lc2, rollup->gsets_data) ^ ../../../../src/include/nodes/pg_list.h:447:20: note: in definition of macro ‘forboth’ for (ForBothState cell1##__state = {(list1), (list2), 0}; \ ^ planner.c:3174:12: warning: shadowed declaration is here [-Wshadow] foreach(lc, gd->rollups) ^ ========== ../../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ planner.c:3203:17: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ planner.c:3167:16: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== planner.c: In function ‘create_distinct_paths’: planner.c:4314:13: warning: declaration of ‘path’ shadows a previous local [-Wshadow] Path *path = (Path *) lfirst(lc); ^ planner.c:4238:11: warning: shadowed declaration is here [-Wshadow] Path *path; ^ ========== planner.c: In function ‘create_ordered_paths’: planner.c:4597:16: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ planner.c:4441:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== planner.c: In function ‘apply_scanjoin_target_to_paths’: planner.c:7001:16: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ planner.c:6852:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== subselect.c: In function ‘finalize_plan’: subselect.c:2557:17: warning: declaration of ‘l’ shadows a previous local [-Wshadow] ListCell *l; ^ subselect.c:2250:14: warning: shadowed declaration is here [-Wshadow] ListCell *l; ^ ========== subselect.c:2574:17: warning: declaration of ‘l’ shadows a previous local [-Wshadow] ListCell *l; ^ subselect.c:2250:14: warning: shadowed declaration is here [-Wshadow] ListCell *l; ^ ========== subselect.c:2591:17: warning: declaration of ‘l’ shadows a previous local [-Wshadow] ListCell *l; ^ subselect.c:2250:14: warning: shadowed declaration is here [-Wshadow] ListCell *l; ^ ========== subselect.c:2608:17: warning: declaration of ‘l’ shadows a previous local [-Wshadow] ListCell *l; ^ subselect.c:2250:14: warning: shadowed declaration is here [-Wshadow] ListCell *l; ^ ========== subselect.c:2625:17: warning: declaration of ‘l’ shadows a previous local [-Wshadow] ListCell *l; ^ subselect.c:2250:14: warning: shadowed declaration is here [-Wshadow] ListCell *l; ^ ========== prepunion.c: In function ‘generate_union_paths’: prepunion.c:649:15: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ prepunion.c:547:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== prepunion.c:655:13: warning: declaration of ‘path’ shadows a previous local [-Wshadow] Path *path = lfirst(lc); ^ prepunion.c:555:11: warning: shadowed declaration is here [-Wshadow] Path *path; ^ ========== clauses.c: In function ‘inline_function’: clauses.c:4349:12: warning: declaration of ‘querytree_list’ shadows a previous local [-Wshadow] List *querytree_list; ^ clauses.c:4279:11: warning: shadowed declaration is here [-Wshadow] List *querytree_list; ^ ========== paramassign.c: In function ‘process_subquery_nestloop_params’: paramassign.c:440:16: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ paramassign.c:430:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== In file included from ../../../../src/include/nodes/primnodes.h:22:0, from ../../../../src/include/nodes/parsenodes.h:27, from ../../../../src/include/nodes/nodeFuncs.h:16, from paramassign.c:53: paramassign.c:447:12: warning: declaration of ‘lc__state’ shadows a previous local [-Wshadow] foreach(lc, root->curOuterParams) ^ ../../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ paramassign.c:432:10: warning: shadowed declaration is here [-Wshadow] foreach(lc, subplan_params) ^ ========== ../../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ paramassign.c:470:16: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ paramassign.c:430:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== In file included from ../../../../src/include/nodes/primnodes.h:22:0, from ../../../../src/include/nodes/parsenodes.h:27, from ../../../../src/include/nodes/nodeFuncs.h:16, from paramassign.c:53: paramassign.c:478:12: warning: declaration of ‘lc__state’ shadows a previous local [-Wshadow] foreach(lc, root->curOuterParams) ^ ../../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ paramassign.c:432:10: warning: shadowed declaration is here [-Wshadow] foreach(lc, subplan_params) ^ ========== ../../../../src/include/nodes/pg_list.h:353:20: note: in definition of macro ‘foreach’ for (ForEachState cell##__state = {(lst), 0}; \ ^ partbounds.c: In function ‘get_qual_for_range’: partbounds.c:4197:6: warning: declaration of ‘i’ shadows a previous local [-Wshadow] i; ^ partbounds.c:4174:8: warning: shadowed declaration is here [-Wshadow] int i, ^ ========== partdesc.c: In function ‘RelationBuildPartitionDesc’: partdesc.c:218:16: warning: declaration of ‘key’ shadows a previous local [-Wshadow] ScanKeyData key[1]; ^ partdesc.c:149:15: warning: shadowed declaration is here [-Wshadow] PartitionKey key = RelationGetPartitionKey(rel); ^ ========== partprune.c: In function ‘match_clause_to_partition_key’: partprune.c:2292:13: warning: declaration of ‘rightop’ shadows a previous local [-Wshadow] Expr *rightop = (Expr *) lfirst(lc1), ^ partprune.c:2089:9: warning: shadowed declaration is here [-Wshadow] *rightop = (Expr *) lsecond(saop->args); ^ ========== autovacuum.c: In function ‘rebuild_database_list’: autovacuum.c:1109:16: warning: declaration of ‘db’ shadows a previous local [-Wshadow] avl_dbase *db = &(dbary[i]); ^ autovacuum.c:1075:15: warning: shadowed declaration is here [-Wshadow] avl_dbase *db; ^ ========== pgstat.c: In function ‘pgstat_read_statsfiles’: pgstat.c:4225:16: warning: declaration of ‘hash_ctl’ shadows a previous local [-Wshadow] HASHCTL hash_ctl; ^ pgstat.c:3973:11: warning: shadowed declaration is here [-Wshadow] HASHCTL hash_ctl; ^ ========== logicalfuncs.c: In function ‘pg_logical_slot_get_changes_guts’: logicalfuncs.c:207:13: warning: declaration of ‘name’ shadows a previous local [-Wshadow] char *name = TextDatumGetCString(datum_opts[i]); ^ logicalfuncs.c:113:8: warning: shadowed declaration is here [-Wshadow] Name name; ^ ========== reorderbuffer.c: In function ‘ReorderBufferProcessTXN’: reorderbuffer.c:2264:17: warning: declaration of ‘relation’ shadows a previous local [-Wshadow] Relation relation; ^ reorderbuffer.c:2065:13: warning: shadowed declaration is here [-Wshadow] Relation relation = NULL; ^ ========== reorderbuffer.c: In function ‘ReorderBufferToastReplace’: reorderbuffer.c:4672:10: warning: declaration of ‘isnull’ shadows a previous local [-Wshadow] bool isnull; ^ reorderbuffer.c:4569:11: warning: shadowed declaration is here [-Wshadow] bool *isnull; ^ ========== tablesync.c: In function ‘process_syncing_tables_for_apply’: tablesync.c:374:15: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ tablesync.c:364:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== basebackup.c: In function ‘perform_base_backup’: basebackup.c:405:20: warning: declaration of ‘ti’ shadows a previous local [-Wshadow] tablespaceinfo *ti = (tablespaceinfo *) lfirst(lc); ^ basebackup.c:314:19: warning: shadowed declaration is here [-Wshadow] tablespaceinfo *ti; ^ ========== walreceiver.c: In function ‘WalReceiverMain’: walreceiver.c:545:19: warning: declaration of ‘now’ shadows a previous local [-Wshadow] TimestampTz now = GetCurrentTimestamp(); ^ walreceiver.c:179:14: warning: shadowed declaration is here [-Wshadow] TimestampTz now; ^ ========== walsender.c: In function ‘pg_stat_get_wal_senders’: walsender.c:3326:14: warning: declaration of ‘sentPtr’ shadows a global declaration [-Wshadow] XLogRecPtr sentPtr; ^ walsender.c:154:19: warning: shadowed declaration is here [-Wshadow] static XLogRecPtr sentPtr = InvalidXLogRecPtr; ^ ========== rowsecurity.c: In function ‘add_with_check_options’: rowsecurity.c:731:21: warning: declaration of ‘wco’ shadows a previous local [-Wshadow] WithCheckOption *wco; ^ rowsecurity.c:704:20: warning: shadowed declaration is here [-Wshadow] WithCheckOption *wco; ^ ========== dependencies.c: In function ‘statext_dependencies_build’: dependencies.c:376:23: warning: declaration of ‘DependencyGenerator’ shadows a global declaration [-Wshadow] DependencyGenerator DependencyGenerator = DependencyGenerator_init(data->nattnums, k); ^ dependencies.c:65:34: warning: shadowed declaration is here [-Wshadow] typedef DependencyGeneratorData *DependencyGenerator; ^ ========== dependencies.c: In function ‘dependency_is_compatible_expression’: dependencies.c:1183:14: warning: declaration of ‘expr’ shadows a parameter [-Wshadow] OpExpr *expr = (OpExpr *) clause; ^ dependencies.c:1158:87: warning: shadowed declaration is here [-Wshadow] dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, Node **expr) ========== ^ dependencies.c:1217:22: warning: declaration of ‘expr’ shadows a parameter [-Wshadow] ScalarArrayOpExpr *expr = (ScalarArrayOpExpr *) clause; ^ dependencies.c:1158:87: warning: shadowed declaration is here [-Wshadow] dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, Node **expr) ========== ^ dependencies.c:1256:15: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ dependencies.c:1161:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc, ^ ========== dependencies.c: In function ‘dependencies_clauselist_selectivity’: dependencies.c:1679:12: warning: declaration of ‘k’ shadows a previous local [-Wshadow] int k; ^ dependencies.c:1584:9: warning: shadowed declaration is here [-Wshadow] int k; ^ ========== extended_stats.c: In function ‘build_sorted_items’: extended_stats.c:1070:10: warning: declaration of ‘isnull’ shadows a previous local [-Wshadow] bool isnull; ^ extended_stats.c:1022:11: warning: shadowed declaration is here [-Wshadow] bool *isnull; ^ ========== mcv.c: In function ‘mcv_get_match_bitmap’: mcv.c:1865:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ mcv.c:1607:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== mcv.c:1893:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ mcv.c:1607:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== bufmgr.c: In function ‘DropRelFileNodesAllBuffers’: bufmgr.c:3317:10: warning: declaration of ‘j’ shadows a previous local [-Wshadow] int j; ^ bufmgr.c:3194:8: warning: shadowed declaration is here [-Wshadow] int j; ^ ========== procarray.c: In function ‘ProcArrayGroupClearXid’: procarray.c:809:14: warning: declaration of ‘proc’ shadows a parameter [-Wshadow] PGPROC *proc = &allProcs[nextidx]; ^ procarray.c:739:32: warning: shadowed declaration is here [-Wshadow] ProcArrayGroupClearXid(PGPROC *proc, TransactionId latestXid) ^ ========== procarray.c:829:14: warning: declaration of ‘proc’ shadows a parameter [-Wshadow] PGPROC *proc = &allProcs[wakeidx]; ^ procarray.c:739:32: warning: shadowed declaration is here [-Wshadow] ProcArrayGroupClearXid(PGPROC *proc, TransactionId latestXid) ^ ========== lock.c: In function ‘GetSingleProcBlockerStatusData’: lock.c:3864:14: warning: declaration of ‘proc’ shadows a previous local [-Wshadow] PGPROC *proc = proclock->tag.myProc; ^ lock.c:3839:13: warning: shadowed declaration is here [-Wshadow] PGPROC *proc; ^ ========== proc.c: In function ‘ProcSleep’: proc.c:1477:16: warning: declaration of ‘proclock’ shadows a previous local [-Wshadow] PROCLOCK *proclock; ^ proc.c:1073:14: warning: shadowed declaration is here [-Wshadow] PROCLOCK *proclock = locallock->proclock; ^ ========== sync.c: In function ‘RememberSyncRequest’: sync.c:492:24: warning: declaration of ‘entry’ shadows a previous local [-Wshadow] PendingUnlinkEntry *entry = (PendingUnlinkEntry *) lfirst(cell); ^ sync.c:477:22: warning: shadowed declaration is here [-Wshadow] PendingFsyncEntry *entry; ^ ========== In file included from ../../../src/include/postgres.h:47:0, from utility.c:17: utility.c: In function ‘ProcessUtilitySlow’: ../../../src/include/utils/elog.h:315:15: warning: declaration of ‘_save_exception_stack’ shadows a previous local [-Wshadow] sigjmp_buf *_save_exception_stack = PG_exception_stack; \ ^ utility.c:1640:5: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ../../../src/include/utils/elog.h:315:15: warning: shadowed declaration is here [-Wshadow] sigjmp_buf *_save_exception_stack = PG_exception_stack; \ ^ ========== utility.c:1077:2: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ../../../src/include/utils/elog.h:316:25: warning: declaration of ‘_save_context_stack’ shadows a previous local [-Wshadow] ErrorContextCallback *_save_context_stack = error_context_stack; \ ^ utility.c:1640:5: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ../../../src/include/utils/elog.h:316:25: warning: shadowed declaration is here [-Wshadow] ErrorContextCallback *_save_context_stack = error_context_stack; \ ^ ========== utility.c:1077:2: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ../../../src/include/utils/elog.h:317:14: warning: declaration of ‘_local_sigjmp_buf’ shadows a previous local [-Wshadow] sigjmp_buf _local_sigjmp_buf; \ ^ utility.c:1640:5: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ../../../src/include/utils/elog.h:317:14: warning: shadowed declaration is here [-Wshadow] sigjmp_buf _local_sigjmp_buf; \ ^ ========== utility.c:1077:2: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ../../../src/include/utils/elog.h:318:8: warning: declaration of ‘_do_rethrow’ shadows a previous local [-Wshadow] bool _do_rethrow = false; \ ^ utility.c:1640:5: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ../../../src/include/utils/elog.h:318:8: warning: shadowed declaration is here [-Wshadow] bool _do_rethrow = false; \ ^ ========== utility.c:1077:2: note: in expansion of macro ‘PG_TRY’ PG_TRY(); ^ ts_typanalyze.c: In function ‘compute_tsvector_stats’: ts_typanalyze.c:405:17: warning: declaration of ‘item’ shadows a previous local [-Wshadow] TrackItem *item = sort_table[i]; ^ ts_typanalyze.c:162:14: warning: shadowed declaration is here [-Wshadow] TrackItem *item; ^ ========== array_typanalyze.c: In function ‘compute_array_stats’: array_typanalyze.c:546:17: warning: declaration of ‘item’ shadows a previous local [-Wshadow] TrackItem *item = sort_table[i]; ^ array_typanalyze.c:237:14: warning: shadowed declaration is here [-Wshadow] TrackItem *item; ^ ========== date.c: In function ‘date_pli’: date.c:512:9: warning: declaration of ‘days’ shadows a global declaration [-Wshadow] int32 days = PG_GETARG_INT32(1); ^ In file included from date.c:33:0: ../../../../src/include/utils/datetime.h:261:26: warning: shadowed declaration is here [-Wshadow] extern const char *const days[]; /* days (full names) */ ^ ========== date.c: In function ‘date_mii’: date.c:536:9: warning: declaration of ‘days’ shadows a global declaration [-Wshadow] int32 days = PG_GETARG_INT32(1); ^ In file included from date.c:33:0: ../../../../src/include/utils/datetime.h:261:26: warning: shadowed declaration is here [-Wshadow] extern const char *const days[]; /* days (full names) */ ^ ========== date.c: In function ‘interval_time’: date.c:2017:9: warning: declaration of ‘days’ shadows a global declaration [-Wshadow] int64 days; ^ In file included from date.c:33:0: ../../../../src/include/utils/datetime.h:261:26: warning: shadowed declaration is here [-Wshadow] extern const char *const days[]; /* days (full names) */ ^ ========== datetime.c: In function ‘DecodeDateTime’: datetime.c:852:12: warning: declaration of ‘val’ shadows a previous local [-Wshadow] int val; ^ datetime.c:811:8: warning: shadowed declaration is here [-Wshadow] int val; ^ ========== datetime.c:1014:12: warning: declaration of ‘val’ shadows a previous local [-Wshadow] int val; ^ datetime.c:811:8: warning: shadowed declaration is here [-Wshadow] int val; ^ ========== datetime.c: In function ‘DecodeTimeOnly’: datetime.c:1900:12: warning: declaration of ‘val’ shadows a previous local [-Wshadow] int val; ^ datetime.c:1762:8: warning: shadowed declaration is here [-Wshadow] int val; ^ ========== formatting.c: In function ‘DCH_to_char’: formatting.c:3222:25: warning: declaration of ‘months’ shadows a global declaration [-Wshadow] const char *const *months; ^ In file included from formatting.c:92:0: ../../../../src/include/utils/datetime.h:260:26: warning: shadowed declaration is here [-Wshadow] extern const char *const months[]; /* months (3-char abbreviations) */ ^ ========== jsonpath_exec.c: In function ‘jsonb_path_query_internal’: jsonpath_exec.c:409:17: warning: declaration of ‘found’ shadows a previous local [-Wshadow] JsonValueList found = {0}; ^ jsonpath_exec.c:398:11: warning: shadowed declaration is here [-Wshadow] List *found; ^ ========== jsonpath_exec.c: In function ‘executeBoolItem’: jsonpath_exec.c:1323:24: warning: declaration of ‘res’ shadows a previous local [-Wshadow] JsonPathExecResult res = ^ jsonpath_exec.c:1227:15: warning: shadowed declaration is here [-Wshadow] JsonPathBool res; ^ ========== jsonpath_exec.c:1334:24: warning: declaration of ‘res’ shadows a previous local [-Wshadow] JsonPathExecResult res = ^ jsonpath_exec.c:1227:15: warning: shadowed declaration is here [-Wshadow] JsonPathBool res; ^ ========== jsonpath_exec.c: In function ‘executePredicate’: jsonpath_exec.c:1510:17: warning: declaration of ‘res’ shadows a previous local [-Wshadow] JsonPathBool res = exec(pred, lval, rval, param); ^ jsonpath_exec.c:1472:21: warning: shadowed declaration is here [-Wshadow] JsonPathExecResult res; ^ ========== numutils.c: In function ‘pg_ulltoa_n’: numutils.c:455:11: warning: declaration of ‘value2’ shadows a previous local [-Wshadow] uint32 value2 = (uint32) (value - 100000000 * q); ^ numutils.c:440:10: warning: shadowed declaration is here [-Wshadow] uint32 value2; ^ ========== partitionfuncs.c: In function ‘pg_partition_ancestors’: partitionfuncs.c:246:9: warning: declaration of ‘relid’ shadows a previous local [-Wshadow] Oid relid = list_nth_oid(ancestors, funcctx->call_cntr); ^ partitionfuncs.c:217:8: warning: shadowed declaration is here [-Wshadow] Oid relid = PG_GETARG_OID(0); ^ ========== pg_upgrade_support.c: In function ‘binary_upgrade_create_empty_extension’: pg_upgrade_support.c:178:13: warning: declaration of ‘extName’ shadows a previous local [-Wshadow] char *extName = TextDatumGetCString(textDatums[i]); ^ pg_upgrade_support.c:133:11: warning: shadowed declaration is here [-Wshadow] text *extName; ^ ========== rangetypes_gist.c: In function ‘range_gist_double_sorting_split’: rangetypes_gist.c:1353:15: warning: declaration of ‘range’ shadows a previous local [-Wshadow] RangeType *range = DatumGetRangeTypeP(entryvec->vector[i].key); ^ rangetypes_gist.c:1325:14: warning: shadowed declaration is here [-Wshadow] RangeType *range, ^ ========== rangetypes_spgist.c: In function ‘spg_range_quad_inner_consistent’: rangetypes_spgist.c:696:11: warning: declaration of ‘cmp’ shadows a previous local [-Wshadow] int cmp; ^ rangetypes_spgist.c:454:10: warning: shadowed declaration is here [-Wshadow] int cmp, ^ ========== rangetypes_spgist.c:724:11: warning: declaration of ‘cmp’ shadows a previous local [-Wshadow] int cmp; ^ rangetypes_spgist.c:454:10: warning: shadowed declaration is here [-Wshadow] int cmp, ^ ========== ruleutils.c: In function ‘pg_get_indexdef_worker’: ruleutils.c:1283:9: warning: declaration of ‘isnull’ shadows a previous local [-Wshadow] bool isnull; ^ ruleutils.c:1216:8: warning: shadowed declaration is here [-Wshadow] bool isnull; ^ ========== ruleutils.c:1477:10: warning: declaration of ‘isnull’ shadows a previous local [-Wshadow] bool isnull; ^ ruleutils.c:1216:8: warning: shadowed declaration is here [-Wshadow] bool isnull; ^ ========== ruleutils.c: In function ‘pg_get_statisticsobj_worker’: ruleutils.c:1600:9: warning: declaration of ‘isnull’ shadows a previous local [-Wshadow] bool isnull; ^ ruleutils.c:1567:8: warning: shadowed declaration is here [-Wshadow] bool isnull; ^ ========== ruleutils.c: In function ‘pg_get_partkeydef_worker’: ruleutils.c:1896:9: warning: declaration of ‘isnull’ shadows a previous local [-Wshadow] bool isnull; ^ ruleutils.c:1858:8: warning: shadowed declaration is here [-Wshadow] bool isnull; ^ ========== ruleutils.c: In function ‘get_parameter’: ruleutils.c:7891:25: warning: declaration of ‘dpns’ shadows a previous local [-Wshadow] deparse_namespace *dpns = lfirst(lc); ^ ruleutils.c:7817:21: warning: shadowed declaration is here [-Wshadow] deparse_namespace *dpns; ^ ========== timestamp.c: In function ‘make_interval’: timestamp.c:1500:9: warning: declaration of ‘months’ shadows a global declaration [-Wshadow] int32 months = PG_GETARG_INT32(1); ^ In file included from timestamp.c:37:0: ../../../../src/include/utils/datetime.h:260:26: warning: shadowed declaration is here [-Wshadow] extern const char *const months[]; /* months (3-char abbreviations) */ ^ ========== timestamp.c:1502:9: warning: declaration of ‘days’ shadows a global declaration [-Wshadow] int32 days = PG_GETARG_INT32(3); ^ In file included from timestamp.c:37:0: ../../../../src/include/utils/datetime.h:261:26: warning: shadowed declaration is here [-Wshadow] extern const char *const days[]; /* days (full names) */ ^ ========== timestamp.c: In function ‘interval_cmp_value’: timestamp.c:2356:9: warning: declaration of ‘days’ shadows a global declaration [-Wshadow] int64 days; ^ In file included from timestamp.c:37:0: ../../../../src/include/utils/datetime.h:261:26: warning: shadowed declaration is here [-Wshadow] extern const char *const days[]; /* days (full names) */ ^ ========== timestamp.c: In function ‘interval_part_common’: timestamp.c:5278:11: warning: declaration of ‘val’ shadows a previous local [-Wshadow] int64 val; ^ timestamp.c:5173:5: warning: shadowed declaration is here [-Wshadow] val; ^ ========== varlena.c: In function ‘appendStringInfoRegexpSubstr’: varlena.c:4482:13: warning: declaration of ‘chunk_start’ shadows a previous local [-Wshadow] char *chunk_start; ^ varlena.c:4410:15: warning: shadowed declaration is here [-Wshadow] const char *chunk_start = p; ^ ========== varlena.c: In function ‘text_format’: varlena.c:5873:14: warning: declaration of ‘str’ shadows a previous local [-Wshadow] char *str; ^ varlena.c:5708:17: warning: shadowed declaration is here [-Wshadow] StringInfoData str; ^ ========== In file included from varlena.c:6231:0: levenshtein.c: In function ‘varstr_levenshtein’: levenshtein.c:196:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ levenshtein.c:84:8: warning: shadowed declaration is here [-Wshadow] int i, ^ ========== In file included from varlena.c:6233:0: levenshtein.c: In function ‘varstr_levenshtein_less_equal’: levenshtein.c:196:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ levenshtein.c:84:8: warning: shadowed declaration is here [-Wshadow] int i, ^ ========== inval.c: In function ‘AddRelcacheInvalidationMessage’: inval.c:309:32: warning: declaration of ‘msg’ shadows a previous local [-Wshadow] SharedInvalidationMessage *msg = &_chunk->msgs[_cindex]; \ ^ inval.c:401:2: note: in expansion of macro ‘ProcessMessageList’ ProcessMessageList(hdr->rclist, ^ inval.c:394:28: warning: shadowed declaration is here [-Wshadow] SharedInvalidationMessage msg; ^ ========== inval.c: In function ‘AddSnapshotInvalidationMessage’: inval.c:309:32: warning: declaration of ‘msg’ shadows a previous local [-Wshadow] SharedInvalidationMessage *msg = &_chunk->msgs[_cindex]; \ ^ inval.c:428:2: note: in expansion of macro ‘ProcessMessageList’ ProcessMessageList(hdr->rclist, ^ inval.c:424:28: warning: shadowed declaration is here [-Wshadow] SharedInvalidationMessage msg; ^ ========== relcache.c: In function ‘GetRelationPublicationActions’: relcache.c:5461:15: warning: declaration of ‘lc’ shadows a previous local [-Wshadow] ListCell *lc; ^ relcache.c:5440:14: warning: shadowed declaration is here [-Wshadow] ListCell *lc; ^ ========== guc.c: In function ‘SelectConfigFiles’: guc.c:5841:56: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] SelectConfigFiles(const char *userDoption, const char *progname) ^ In file included from guc.c:74:0: ../../../../src/include/postmaster/postmaster.h:48:32: warning: shadowed declaration is here [-Wshadow] extern PGDLLIMPORT const char *progname; ^ ========== freepage.c: In function ‘FreePageManagerPutInternal’: freepage.c:1589:9: warning: declaration of ‘result’ shadows a previous local [-Wshadow] Size result; ^ freepage.c:1480:28: warning: shadowed declaration is here [-Wshadow] FreePageBtreeSearchResult result; ^ ========== fe-connect.c: In function ‘PQconnectPoll’: fe-connect.c:3236:11: warning: declaration of ‘res’ shadows a previous local [-Wshadow] int res; ^ fe-connect.c:2255:14: warning: shadowed declaration is here [-Wshadow] PGresult *res; ^ ========== dt_common.c: In function ‘DecodeDateTime’: dt_common.c:1824:12: warning: declaration of ‘val’ shadows a previous local [-Wshadow] int val; ^ dt_common.c:1789:8: warning: shadowed declaration is here [-Wshadow] int val; ^ ========== dt_common.c:1962:12: warning: declaration of ‘val’ shadows a previous local [-Wshadow] int val; ^ dt_common.c:1789:8: warning: shadowed declaration is here [-Wshadow] int val; ^ ========== numeric.c: In function ‘PGTYPESnumeric_div’: numeric.c:1188:11: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ numeric.c:1069:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== execute.c: In function ‘next_insert’: execute.c:114:19: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] next_insert(char *text, int pos, bool questionmarks, bool std_strings) ^ In file included from ../../../../src/include/postgres_fe.h:25:0, from execute.c:17: ../../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== execute.c: In function ‘ecpg_store_result’: execute.c:373:14: warning: declaration of ‘len’ shadows a previous local [-Wshadow] int len = strlen(PQgetvalue(results, act_tuple, act_field)) + 1; ^ execute.c:350:9: warning: shadowed declaration is here [-Wshadow] int len = 0; ^ ========== misc.c: In function ‘ECPGset_var’: misc.c:555:19: warning: declaration of ‘sqlca’ shadows a previous local [-Wshadow] struct sqlca_t *sqlca = ECPGget_sqlca(); ^ misc.c:530:18: warning: shadowed declaration is here [-Wshadow] struct sqlca_t *sqlca = ECPGget_sqlca(); ^ ========== prepare.c: In function ‘replace_variables’: prepare.c:104:26: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] replace_variables(char **text, int lineno) ^ In file included from ../../../../src/include/postgres_fe.h:25:0, from prepare.c:4: ../../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== prepare.c: In function ‘deallocate_one’: prepare.c:270:12: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] char *text; ^ In file included from ../../../../src/include/postgres_fe.h:25:0, from prepare.c:4: ../../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== descriptor.c: In function ‘add_descriptor’: descriptor.c:76:34: warning: declaration of ‘connection’ shadows a global declaration [-Wshadow] add_descriptor(char *name, char *connection) ^ In file included from descriptor.c:12:0: preproc_extern.h:33:14: warning: shadowed declaration is here [-Wshadow] extern char *connection; ^ ========== descriptor.c: In function ‘drop_descriptor’: descriptor.c:99:35: warning: declaration of ‘connection’ shadows a global declaration [-Wshadow] drop_descriptor(char *name, char *connection) ^ In file included from descriptor.c:12:0: preproc_extern.h:33:14: warning: shadowed declaration is here [-Wshadow] extern char *connection; ^ ========== descriptor.c: In function ‘lookup_descriptor’: descriptor.c:129:37: warning: declaration of ‘connection’ shadows a global declaration [-Wshadow] lookup_descriptor(char *name, char *connection) ^ In file included from descriptor.c:12:0: preproc_extern.h:33:14: warning: shadowed declaration is here [-Wshadow] extern char *connection; ^ ========== ecpg_keywords.c: In function ‘ScanECPGKeywordLookup’: ecpg_keywords.c:39:35: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] ScanECPGKeywordLookup(const char *text) ^ In file included from ../../../../src/include/postgres_fe.h:25:0, from ecpg_keywords.c:12: ../../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== preproc.y: In function ‘adjust_outofscope_cursor_vars’: preproc.y:244:46: warning: declaration of ‘cur’ shadows a global declaration [-Wshadow] adjust_outofscope_cursor_vars(struct cursor *cur) ^ In file included from preproc.y:8:0: preproc_extern.h:47:23: warning: shadowed declaration is here [-Wshadow] extern struct cursor *cur; ^ ========== preproc.y: In function ‘add_typedef’: preproc.y:535:48: warning: declaration of ‘initializer’ shadows a global declaration [-Wshadow] char *type_dimension, char *type_index, int initializer, int array) ^ preproc.y:44:12: warning: shadowed declaration is here [-Wshadow] static int initializer = 0; ^ ========== print.c: In function ‘print_aligned_text’: print.c:886:10: warning: declaration of ‘curr_nl_line’ shadows a previous local [-Wshadow] int curr_nl_line; ^ print.c:584:8: warning: shadowed declaration is here [-Wshadow] *curr_nl_line, ^ ========== initdb.c: In function ‘get_id’: initdb.c:601:14: warning: declaration of ‘username’ shadows a global declaration [-Wshadow] const char *username; ^ initdb.c:134:14: warning: shadowed declaration is here [-Wshadow] static char *username = NULL; ^ ========== initdb.c: In function ‘set_null_conf’: initdb.c:846:11: warning: declaration of ‘conf_file’ shadows a global declaration [-Wshadow] FILE *conf_file; ^ initdb.c:158:14: warning: shadowed declaration is here [-Wshadow] static char *conf_file; ^ ========== initdb.c: In function ‘locale_date_order’: initdb.c:2025:31: warning: declaration of ‘locale’ shadows a global declaration [-Wshadow] locale_date_order(const char *locale) ^ initdb.c:126:14: warning: shadowed declaration is here [-Wshadow] static char *locale = NULL; ^ ========== initdb.c: In function ‘check_locale_name’: initdb.c:2088:45: warning: declaration of ‘locale’ shadows a global declaration [-Wshadow] check_locale_name(int category, const char *locale, char **canonname) ^ initdb.c:126:14: warning: shadowed declaration is here [-Wshadow] static char *locale = NULL; ^ ========== initdb.c: In function ‘check_locale_encoding’: initdb.c:2152:35: warning: declaration of ‘locale’ shadows a global declaration [-Wshadow] check_locale_encoding(const char *locale, int user_enc) ^ initdb.c:126:14: warning: shadowed declaration is here [-Wshadow] static char *locale = NULL; ^ ========== initdb.c: In function ‘usage’: initdb.c:2239:19: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] usage(const char *progname) ^ initdb.c:153:20: warning: shadowed declaration is here [-Wshadow] static const char *progname; ^ ========== initdb.c: In function ‘check_need_password’: initdb.c:2313:33: warning: declaration of ‘authmethodlocal’ shadows a global declaration [-Wshadow] check_need_password(const char *authmethodlocal, const char *authmethodhost) ^ initdb.c:139:20: warning: shadowed declaration is here [-Wshadow] static const char *authmethodlocal = NULL; ^ ========== initdb.c:2313:62: warning: declaration of ‘authmethodhost’ shadows a global declaration [-Wshadow] check_need_password(const char *authmethodlocal, const char *authmethodhost) ^ initdb.c:138:20: warning: shadowed declaration is here [-Wshadow] static const char *authmethodhost = NULL; ^ ========== pg_amcheck.c: In function ‘help’: pg_amcheck.c:1149:18: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] help(const char *progname) ^ pg_amcheck.c:139:20: warning: shadowed declaration is here [-Wshadow] static const char *progname = NULL; ^ ========== pg_basebackup.c: In function ‘ReceiveCopyData’: pg_basebackup.c:952:25: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ReceiveCopyData(PGconn *conn, WriteDataCallback callback, ^ In file included from pg_basebackup.c:43:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== pg_basebackup.c: In function ‘ReceiveTarFile’: pg_basebackup.c:1039:24: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ReceiveTarFile(PGconn *conn, PGresult *res, int rownum) ^ In file included from pg_basebackup.c:43:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== pg_basebackup.c: In function ‘ReceiveAndUnpackTarFile’: pg_basebackup.c:1515:33: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum) ^ In file included from pg_basebackup.c:43:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== pg_basebackup.c: In function ‘ReceiveBackupManifest’: pg_basebackup.c:1738:31: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ReceiveBackupManifest(PGconn *conn) ^ In file included from pg_basebackup.c:43:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== pg_basebackup.c: In function ‘ReceiveBackupManifestInMemory’: pg_basebackup.c:1779:39: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ReceiveBackupManifestInMemory(PGconn *conn, PQExpBuffer buf) ^ In file included from pg_basebackup.c:43:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘sendFeedback’: receivelog.c:319:22: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] sendFeedback(PGconn *conn, XLogRecPtr blockpos, TimestampTz now, bool replyRequested) ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘CheckServerVersionForStreaming’: receivelog.c:357:40: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] CheckServerVersionForStreaming(PGconn *conn) ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘ReceiveXlogStream’: receivelog.c:435:27: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ReceiveXlogStream(PGconn *conn, StreamCtl *stream) ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘HandleCopyStream’: receivelog.c:731:26: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] HandleCopyStream(PGconn *conn, StreamCtl *stream, ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘CopyStreamPoll’: receivelog.c:860:24: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] CopyStreamPoll(PGconn *conn, long timeout_ms, pgsocket stop_socket) ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘CopyStreamReceive’: receivelog.c:922:27: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] CopyStreamReceive(PGconn *conn, long timeout, pgsocket stop_socket, ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘ProcessKeepaliveMsg’: receivelog.c:977:29: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ProcessKeepaliveMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘ProcessXLogDataMsg’: receivelog.c:1034:28: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘HandleEndOfCopyStream’: receivelog.c:1164:31: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf, ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== receivelog.c: In function ‘CheckCopyStreamStop’: receivelog.c:1205:29: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos) ^ In file included from receivelog.c:28:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== streamutil.c: In function ‘RetrieveWalSegSize’: streamutil.c:277:28: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] RetrieveWalSegSize(PGconn *conn) ^ streamutil.c:54:12: warning: shadowed declaration is here [-Wshadow] PGconn *conn = NULL; ^ ========== streamutil.c: In function ‘RetrieveDataDirCreatePerm’: streamutil.c:355:35: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] RetrieveDataDirCreatePerm(PGconn *conn) ^ streamutil.c:54:12: warning: shadowed declaration is here [-Wshadow] PGconn *conn = NULL; ^ ========== streamutil.c: In function ‘RunIdentifySystem’: streamutil.c:409:27: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] RunIdentifySystem(PGconn *conn, char **sysid, TimeLineID *starttli, ^ streamutil.c:54:12: warning: shadowed declaration is here [-Wshadow] PGconn *conn = NULL; ^ ========== streamutil.c: In function ‘CreateReplicationSlot’: streamutil.c:487:31: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] CreateReplicationSlot(PGconn *conn, const char *slot_name, const char *plugin, ^ streamutil.c:54:12: warning: shadowed declaration is here [-Wshadow] PGconn *conn = NULL; ^ ========== streamutil.c: In function ‘DropReplicationSlot’: streamutil.c:563:29: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] DropReplicationSlot(PGconn *conn, const char *slot_name) ^ streamutil.c:54:12: warning: shadowed declaration is here [-Wshadow] PGconn *conn = NULL; ^ ========== pg_receivewal.c: In function ‘FindStreamingStart’: pg_receivewal.c:212:11: warning: declaration of ‘tli’ shadows a parameter [-Wshadow] uint32 tli; ^ pg_receivewal.c:200:28: warning: shadowed declaration is here [-Wshadow] FindStreamingStart(uint32 *tli) ^ ========== pg_recvlogical.c: In function ‘sendFeedback’: pg_recvlogical.c:114:22: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] sendFeedback(PGconn *conn, TimestampTz now, bool force, bool replyRequested) ^ In file included from pg_recvlogical.c:30:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== pg_recvlogical.c: In function ‘flushAndSendFeedback’: pg_recvlogical.c:1022:30: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] flushAndSendFeedback(PGconn *conn, TimestampTz *now) ^ In file included from pg_recvlogical.c:30:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== pg_recvlogical.c: In function ‘prepareToTerminate’: pg_recvlogical.c:1039:28: warning: declaration of ‘conn’ shadows a global declaration [-Wshadow] prepareToTerminate(PGconn *conn, XLogRecPtr endpos, bool keepalive, XLogRecPtr lsn) ^ In file included from pg_recvlogical.c:30:0: streamutil.h:29:16: warning: shadowed declaration is here [-Wshadow] extern PGconn *conn; ^ ========== pg_recvlogical.c:1039:45: warning: declaration of ‘endpos’ shadows a global declaration [-Wshadow] prepareToTerminate(PGconn *conn, XLogRecPtr endpos, bool keepalive, XLogRecPtr lsn) ^ pg_recvlogical.c:42:19: warning: shadowed declaration is here [-Wshadow] static XLogRecPtr endpos = InvalidXLogRecPtr; ^ ========== pg_controldata.c: In function ‘wal_level_str’: pg_controldata.c:73:24: warning: declaration of ‘wal_level’ shadows a global declaration [-Wshadow] wal_level_str(WalLevel wal_level) ^ In file included from pg_controldata.c:24:0: ../../../src/include/access/xlog.h:187:24: warning: shadowed declaration is here [-Wshadow] extern PGDLLIMPORT int wal_level; ^ ========== pg_ctl.c: In function ‘trap_sigint_during_startup’: pg_ctl.c:780:32: warning: declaration of ‘sig’ shadows a global declaration [-Wshadow] trap_sigint_during_startup(int sig) ^ pg_ctl.c:84:12: warning: shadowed declaration is here [-Wshadow] static int sig = SIGINT; /* default */ ^ ========== pg_ctl.c: In function ‘find_other_exec_or_die’: pg_ctl.c:798:36: warning: declaration of ‘argv0’ shadows a global declaration [-Wshadow] find_other_exec_or_die(const char *argv0, const char *target, const char *versionstr) ^ pg_ctl.c:97:14: warning: shadowed declaration is here [-Wshadow] static char *argv0 = NULL; ^ ========== pg_dump.c: In function ‘help’: pg_dump.c:1018:18: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] help(const char *progname) ^ In file included from pg_dump.c:62:0: pg_backup_utils.h:28:20: warning: shadowed declaration is here [-Wshadow] extern const char *progname; ^ ========== pg_dump.c: In function ‘expand_schema_name_patterns’: pg_dump.c:1345:13: warning: declaration of ‘strict_names’ shadows a global declaration [-Wshadow] bool strict_names) ^ pg_dump.c:103:12: warning: shadowed declaration is here [-Wshadow] static int strict_names = 0; ^ ========== pg_dump.c: In function ‘expand_extension_name_patterns’: pg_dump.c:1393:16: warning: declaration of ‘strict_names’ shadows a global declaration [-Wshadow] bool strict_names) ^ pg_dump.c:103:12: warning: shadowed declaration is here [-Wshadow] static int strict_names = 0; ^ ========== pg_dump.c: In function ‘expand_table_name_patterns’: pg_dump.c:1485:15: warning: declaration of ‘strict_names’ shadows a global declaration [-Wshadow] bool strict_names) ^ pg_dump.c:103:12: warning: shadowed declaration is here [-Wshadow] static int strict_names = 0; ^ ========== pg_dump.c: In function ‘dumpFunc’: pg_dump.c:12372:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ pg_dump.c:12076:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== common.c: In function ‘flagInhTables’: common.c:280:54: warning: declaration of ‘numTables’ shadows a global declaration [-Wshadow] flagInhTables(Archive *fout, TableInfo *tblinfo, int numTables, ^ common.c:56:12: warning: shadowed declaration is here [-Wshadow] static int numTables; ^ ========== common.c: In function ‘flagInhIndexes’: common.c:373:56: warning: declaration of ‘numTables’ shadows a global declaration [-Wshadow] flagInhIndexes(Archive *fout, TableInfo tblinfo[], int numTables) ^ common.c:56:12: warning: shadowed declaration is here [-Wshadow] static int numTables; ^ ========== common.c: In function ‘flagInhAttrs’: common.c:492:57: warning: declaration of ‘numTables’ shadows a global declaration [-Wshadow] flagInhAttrs(DumpOptions *dopt, TableInfo *tblinfo, int numTables) ^ common.c:56:12: warning: shadowed declaration is here [-Wshadow] static int numTables; ^ ========== pg_backup_directory.c: In function ‘_PrintFileData’: pg_backup_directory.c:386:11: warning: declaration of ‘cfp’ shadows a global declaration [-Wshadow] cfp *cfp; ^ In file included from pg_backup_directory.c:41:0: compress_io.h:57:20: warning: shadowed declaration is here [-Wshadow] typedef struct cfp cfp; ^ ========== pg_backup_directory.c: In function ‘_LoadBlobs’: pg_backup_directory.c:452:9: warning: declaration of ‘fname’ shadows a previous local [-Wshadow] char fname[MAXPGPATH]; ^ pg_backup_directory.c:436:8: warning: shadowed declaration is here [-Wshadow] char fname[MAXPGPATH]; ^ ========== pg_restore.c: In function ‘usage’: pg_restore.c:459:19: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] usage(const char *progname) ^ In file included from pg_restore.c:51:0: pg_backup_utils.h:28:20: warning: shadowed declaration is here [-Wshadow] extern const char *progname; ^ ========== pg_dumpall.c: In function ‘constructConnStr’: pg_dumpall.c:1846:11: warning: declaration of ‘connstr’ shadows a global declaration [-Wshadow] char *connstr; ^ pg_dumpall.c:62:14: warning: shadowed declaration is here [-Wshadow] static char *connstr = ""; ^ ========== pg_resetwal.c: In function ‘PrintControlValues’: pg_resetwal.c:741:25: warning: declaration of ‘guessed’ shadows a global declaration [-Wshadow] PrintControlValues(bool guessed) ^ pg_resetwal.c:64:13: warning: shadowed declaration is here [-Wshadow] static bool guessed = false; /* T if we had to guess at any values */ ^ ========== file_ops.c: In function ‘remove_target_file’: file_ops.c:189:8: warning: declaration of ‘dstpath’ shadows a global declaration [-Wshadow] char dstpath[MAXPGPATH]; ^ file_ops.c:32:13: warning: shadowed declaration is here [-Wshadow] static char dstpath[MAXPGPATH] = ""; ^ ========== file_ops.c: In function ‘truncate_target_file’: file_ops.c:208:8: warning: declaration of ‘dstpath’ shadows a global declaration [-Wshadow] char dstpath[MAXPGPATH]; ^ file_ops.c:32:13: warning: shadowed declaration is here [-Wshadow] static char dstpath[MAXPGPATH] = ""; ^ ========== file_ops.c: In function ‘create_target_dir’: file_ops.c:231:8: warning: declaration of ‘dstpath’ shadows a global declaration [-Wshadow] char dstpath[MAXPGPATH]; ^ file_ops.c:32:13: warning: shadowed declaration is here [-Wshadow] static char dstpath[MAXPGPATH] = ""; ^ ========== file_ops.c: In function ‘remove_target_dir’: file_ops.c:245:8: warning: declaration of ‘dstpath’ shadows a global declaration [-Wshadow] char dstpath[MAXPGPATH]; ^ file_ops.c:32:13: warning: shadowed declaration is here [-Wshadow] static char dstpath[MAXPGPATH] = ""; ^ ========== file_ops.c: In function ‘create_target_symlink’: file_ops.c:259:8: warning: declaration of ‘dstpath’ shadows a global declaration [-Wshadow] char dstpath[MAXPGPATH]; ^ file_ops.c:32:13: warning: shadowed declaration is here [-Wshadow] static char dstpath[MAXPGPATH] = ""; ^ ========== file_ops.c: In function ‘remove_target_symlink’: file_ops.c:273:8: warning: declaration of ‘dstpath’ shadows a global declaration [-Wshadow] char dstpath[MAXPGPATH]; ^ file_ops.c:32:13: warning: shadowed declaration is here [-Wshadow] static char dstpath[MAXPGPATH] = ""; ^ ========== In file included from filemap.c:52:0: ../../../src/include/lib/simplehash.h: In function ‘filehash_grow’: ../../../src/include/lib/simplehash.h:548:12: warning: declaration of ‘startelem’ shadows a previous local [-Wshadow] uint32 startelem; ^ ../../../src/include/lib/simplehash.h:485:10: warning: shadowed declaration is here [-Wshadow] uint32 startelem = 0; ^ ========== local_source.c: In function ‘local_fetch_file_range’: local_source.c:97:11: warning: declaration of ‘len’ shadows a parameter [-Wshadow] size_t len; ^ local_source.c:73:16: warning: shadowed declaration is here [-Wshadow] size_t len) ^ ========== pg_rewind.c: In function ‘usage’: pg_rewind.c:82:19: warning: declaration of ‘progname’ shadows a global declaration [-Wshadow] usage(const char *progname) ^ pg_rewind.c:55:13: warning: shadowed declaration is here [-Wshadow] const char *progname; ^ ========== pg_rewind.c: In function ‘perform_rewind’: pg_rewind.c:493:51: warning: declaration of ‘source’ shadows a global declaration [-Wshadow] perform_rewind(filemap_t *filemap, rewind_source *source, ^ pg_rewind.c:79:23: warning: shadowed declaration is here [-Wshadow] static rewind_source *source; ^ ========== xlogreader.c: In function ‘XLogReaderAllocate’: xlogreader.c:82:24: warning: declaration of ‘wal_segment_size’ shadows a global declaration [-Wshadow] XLogReaderAllocate(int wal_segment_size, const char *waldir, ^ In file included from ../../../src/include/replication/origin.h:13:0, from xlogreader.c:28: ../../../src/include/access/xlog.h:107:12: warning: shadowed declaration is here [-Wshadow] extern int wal_segment_size; ^ ========== pg_test_fsync.c: In function ‘print_elapse’: pg_test_fsync.c:604:29: warning: declaration of ‘start_t’ shadows a global declaration [-Wshadow] print_elapse(struct timeval start_t, struct timeval stop_t, int ops) ^ pg_test_fsync.c:71:23: warning: shadowed declaration is here [-Wshadow] static struct timeval start_t, ^ ========== pg_test_fsync.c:604:53: warning: declaration of ‘stop_t’ shadows a global declaration [-Wshadow] print_elapse(struct timeval start_t, struct timeval stop_t, int ops) ^ pg_test_fsync.c:72:4: warning: shadowed declaration is here [-Wshadow] stop_t; ^ ========== check.c: In function ‘check_for_new_tablespace_dir’: check.c:487:43: warning: declaration of ‘new_cluster’ shadows a global declaration [-Wshadow] check_for_new_tablespace_dir(ClusterInfo *new_cluster) ^ In file included from check.c:15:0: pg_upgrade.h:325:4: warning: shadowed declaration is here [-Wshadow] new_cluster; ^ ========== In file included from pg_verifybackup.c:76:0: ../../../src/include/lib/simplehash.h: In function ‘manifest_files_grow’: ../../../src/include/lib/simplehash.h:548:12: warning: declaration of ‘startelem’ shadows a previous local [-Wshadow] uint32 startelem; ^ ../../../src/include/lib/simplehash.h:485:10: warning: shadowed declaration is here [-Wshadow] uint32 startelem = 0; ^ ========== xlogreader.c: In function ‘XLogReaderAllocate’: xlogreader.c:82:24: warning: declaration of ‘wal_segment_size’ shadows a global declaration [-Wshadow] XLogReaderAllocate(int wal_segment_size, const char *waldir, ^ In file included from ../../../src/include/replication/origin.h:13:0, from xlogreader.c:28: ../../../src/include/access/xlog.h:107:12: warning: shadowed declaration is here [-Wshadow] extern int wal_segment_size; ^ ========== pgbench.c: In function ‘sendCommand’: pgbench.c:2893:11: warning: declaration of ‘name’ shadows a previous local [-Wshadow] char name[MAX_PREPARE_NAME]; ^ pgbench.c:2882:9: warning: shadowed declaration is here [-Wshadow] char name[MAX_PREPARE_NAME]; ^ ========== pgbench.c: In function ‘advanceConnectionState’: pgbench.c:3360:18: warning: declaration of ‘command’ shadows a previous local [-Wshadow] Command *command; ^ pgbench.c:3143:15: warning: shadowed declaration is here [-Wshadow] Command *command; ^ ========== pgbench.c:3507:18: warning: declaration of ‘command’ shadows a previous local [-Wshadow] Command *command; ^ pgbench.c:3143:15: warning: shadowed declaration is here [-Wshadow] Command *command; ^ ========== pgbench.c: In function ‘threadRun’: pgbench.c:6762:19: warning: declaration of ‘now’ shadows a previous local [-Wshadow] pg_time_usec_t now = pg_time_now(); ^ pgbench.c:6612:18: warning: shadowed declaration is here [-Wshadow] pg_time_usec_t now = 0; /* set this only if needed */ ^ ========== command.c: In function ‘do_connect’: command.c:3495:13: warning: declaration of ‘host’ shadows a parameter [-Wshadow] char *host = PQhost(pset.db); ^ command.c:3084:38: warning: shadowed declaration is here [-Wshadow] char *dbname, char *user, char *host, char *port) ^ ========== common.c: In function ‘ExecQueryUsingCursor’: common.c:1793:9: warning: declaration of ‘buf’ shadows a previous local [-Wshadow] char buf[32]; ^ common.c:1589:18: warning: shadowed declaration is here [-Wshadow] PQExpBufferData buf; ^ ========== describe.c: In function ‘describeOneTableDetails’: describe.c:1865:17: warning: declaration of ‘myopt’ shadows a previous local [-Wshadow] printQueryOpt myopt = pset.popt; ^ describe.c:1619:16: warning: shadowed declaration is here [-Wshadow] printTableOpt myopt = pset.popt.topt; ^ ========== describe.c:2396:13: warning: declaration of ‘schemaname’ shadows a parameter [-Wshadow] char *schemaname = PQgetvalue(result, 0, 0); ^ describe.c:1611:37: warning: shadowed declaration is here [-Wshadow] describeOneTableDetails(const char *schemaname, ^ ========== prompt.c: In function ‘get_prompt’: prompt.c:339:12: warning: declaration of ‘p’ shadows a previous local [-Wshadow] char *p = destination; ^ prompt.c:72:14: warning: shadowed declaration is here [-Wshadow] const char *p; ^ ========== tab-complete.c: In function ‘psql_completion’: tab-complete.c:1428:29: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] psql_completion(const char *text, int start, int end) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘create_or_drop_command_generator’: tab-complete.c:4225:46: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] create_or_drop_command_generator(const char *text, int state, bits32 excluded) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘create_command_generator’: tab-complete.c:4254:38: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] create_command_generator(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘drop_command_generator’: tab-complete.c:4263:36: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] drop_command_generator(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘alter_command_generator’: tab-complete.c:4272:37: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] alter_command_generator(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_query’: tab-complete.c:4283:33: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_query(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_versioned_query’: tab-complete.c:4290:43: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_versioned_query(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_schema_query’: tab-complete.c:4305:40: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_schema_query(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_versioned_schema_query’: tab-complete.c:4313:50: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_versioned_schema_query(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘_complete_from_query’: tab-complete.c:4370:19: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_list’: tab-complete.c:4558:32: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_list(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_const’: tab-complete.c:4638:33: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_const(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_variables’: tab-complete.c:4686:37: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_variables(const char *text, const char *prefix, const char *suffix, ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘complete_from_files’: tab-complete.c:4731:33: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] complete_from_files(const char *text, int state) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== tab-complete.c: In function ‘escape_string’: tab-complete.c:4865:27: warning: declaration of ‘text’ shadows a global declaration [-Wshadow] escape_string(const char *text) ^ In file included from ../../../src/include/postgres_fe.h:25:0, from tab-complete.c:35: ../../../src/include/c.h:635:24: warning: shadowed declaration is here [-Wshadow] typedef struct varlena text; ^ ========== pl_funcs.c: In function ‘plpgsql_dumptree’: pl_funcs.c:1673:12: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ pl_funcs.c:1623:8: warning: shadowed declaration is here [-Wshadow] int i; ^ ========== regress.c: In function ‘test_atomic_uint32’: regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:694:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_read_u32(&var), 0); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:696:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_read_u32(&var), 3); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:697:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_add_u32(&var, pg_atomic_read_u32(&var) - 2), ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:699:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_sub_u32(&var, 1), 4); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:700:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_sub_fetch_u32(&var, 3), 0); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:701:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_add_fetch_u32(&var, 10), 10); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:702:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_exchange_u32(&var, 5), 10); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:703:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_exchange_u32(&var, 0), 5); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:706:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_add_u32(&var, INT_MAX), 0); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:707:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_add_u32(&var, INT_MAX), INT_MAX); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:709:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_add_u32(&var, PG_INT16_MAX), 0); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:710:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_add_u32(&var, PG_INT16_MAX + 1), ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:712:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_add_u32(&var, PG_INT16_MIN), ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:714:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_add_u32(&var, PG_INT16_MIN - 1), ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:717:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_read_u32(&var), UINT_MAX); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:718:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_sub_u32(&var, INT_MAX), UINT_MAX); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:719:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_read_u32(&var), (uint32) INT_MAX + 1); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:720:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_sub_fetch_u32(&var, INT_MAX), 1); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:744:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_read_u32(&var), 1); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:750:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_read_u32(&var), 3); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:752:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_and_u32(&var, ~2) & 3, 3); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:753:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_and_u32(&var, ~1), 1); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c:58:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint32 expected = (expected_expr); \ ^ regress.c:755:2: note: in expansion of macro ‘EXPECT_EQ_U32’ EXPECT_EQ_U32(pg_atomic_fetch_and_u32(&var, ~0), 0); ^ regress.c:690:10: warning: shadowed declaration is here [-Wshadow] uint32 expected; ^ ========== regress.c: In function ‘test_atomic_uint64’: regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:766:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_read_u64(&var), 0); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:768:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_read_u64(&var), 3); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:769:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_fetch_add_u64(&var, pg_atomic_read_u64(&var) - 2), ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:771:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_fetch_sub_u64(&var, 1), 4); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:772:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_sub_fetch_u64(&var, 3), 0); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:773:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_add_fetch_u64(&var, 10), 10); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:774:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_exchange_u64(&var, 5), 10); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:775:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_exchange_u64(&var, 0), 5); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:790:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_read_u64(&var), 1); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:797:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_read_u64(&var), 3); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:799:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64((pg_atomic_fetch_and_u64(&var, ~2) & 3), 3); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:800:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_fetch_and_u64(&var, ~1), 1); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ========== regress.c:68:11: warning: declaration of ‘expected’ shadows a previous local [-Wshadow] uint64 expected = (expected_expr); \ ^ regress.c:802:2: note: in expansion of macro ‘EXPECT_EQ_U64’ EXPECT_EQ_U64(pg_atomic_fetch_and_u64(&var, ~0), 0); ^ regress.c:762:10: warning: shadowed declaration is here [-Wshadow] uint64 expected; ^ ==========