controldata_utils.c:53:29: warning: declaration shadows a variable in the global scope [-Wshadow] 53 | get_controlfile(const char *DataDir, bool *crc_ok_p) | ^ ../../src/include/miscadmin.h:175:26: note: previous declaration is here 175 | extern PGDLLIMPORT char *DataDir; | ^ controldata_utils.c:190:32: warning: declaration shadows a variable in the global scope [-Wshadow] 190 | update_controlfile(const char *DataDir, | ^ ../../src/include/miscadmin.h:175:26: note: previous declaration is here 175 | extern PGDLLIMPORT char *DataDir; | ^ 2 warnings generated. pgtz.c:234:22: warning: declaration shadows a variable in the global scope [-Wshadow] 234 | pg_tzset(const char *tzname) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ pgtz.c:324:8: warning: declaration shadows a variable in the global scope [-Wshadow] 324 | char tzname[128]; | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ 2 warnings generated. brin.c:702:16: warning: declaration shadows a local variable [-Wshadow] 702 | FmgrInfo *tmp; | ^ brin.c:594:11: note: previous declaration is here 594 | char *tmp PG_USED_FOR_ASSERTS_ONLY; | ^ 1 warning generated. gistbuild.c:1161:23: warning: declaration shadows a local variable [-Wshadow] 1161 | GISTPageSplitInfo *splitinfo = lfirst(lc); | ^ gistbuild.c:1061:11: note: previous declaration is here 1061 | List *splitinfo; | ^ 1 warning generated. xlogdesc.c:41:26: warning: declaration shadows a variable in the global scope [-Wshadow] 41 | get_wal_level_string(int wal_level) | ^ ../../../../src/include/access/xlog.h:98:24: note: previous declaration is here 98 | extern PGDLLIMPORT int wal_level; | ^ 1 warning generated. xlogreader.c:108:24: warning: declaration shadows a variable in the global scope [-Wshadow] 108 | XLogReaderAllocate(int wal_segment_size, const char *waldir, | ^ ../../../../src/include/access/xlog.h:38:24: note: previous declaration is here 38 | extern PGDLLIMPORT int wal_segment_size; | ^ 1 warning generated. xlogrecovery.c:1168:13: warning: declaration shadows a variable in the global scope [-Wshadow] 1168 | bool *backupEndRequired, bool *backupFromStandby) | ^ xlogrecovery.c:287:13: note: previous declaration is here 287 | static bool backupEndRequired = false; | ^ xlogrecovery.c:1880:33: warning: declaration shadows a variable in the global scope [-Wshadow] 1880 | ApplyWalRecord(XLogReaderState *xlogreader, XLogRecord *record, TimeLineID *replayTLI) | ^ xlogrecovery.c:192:25: note: previous declaration is here 192 | static XLogReaderState *xlogreader = NULL; | ^ xlogrecovery.c:3105:28: warning: declaration shadows a variable in the global scope [-Wshadow] 3105 | ReadRecord(XLogPrefetcher *xlogprefetcher, int emode, | ^ xlogrecovery.c:195:24: note: previous declaration is here 195 | static XLogPrefetcher *xlogprefetcher = NULL; | ^ xlogrecovery.c:3109:19: warning: declaration shadows a variable in the global scope [-Wshadow] 3109 | XLogReaderState *xlogreader = XLogPrefetcherGetReader(xlogprefetcher); | ^ xlogrecovery.c:192:25: note: previous declaration is here 192 | static XLogReaderState *xlogreader = NULL; | ^ xlogrecovery.c:3274:31: warning: declaration shadows a variable in the global scope [-Wshadow] 3274 | XLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr, int reqLen, | ^ xlogrecovery.c:192:25: note: previous declaration is here 192 | static XLogReaderState *xlogreader = NULL; | ^ xlogrecovery.c:4057:38: warning: declaration shadows a variable in the global scope [-Wshadow] 4057 | ReadCheckpointRecord(XLogPrefetcher *xlogprefetcher, XLogRecPtr RecPtr, | ^ xlogrecovery.c:195:24: note: previous declaration is here 195 | static XLogPrefetcher *xlogprefetcher = NULL; | ^ 6 warnings generated. bootstrap.c:240:11: warning: declaration shadows a variable in the global scope [-Wshadow] 240 | char *progname = argv[0]; | ^ ../../../src/include/postmaster/postmaster.h:88:32: note: previous declaration is here 88 | extern PGDLLIMPORT const char *progname; | ^ 1 warning generated. objectaddress.c:2239:12: warning: declaration shadows a local variable [-Wshadow] 2239 | bool *nulls; | ^ objectaddress.c:2218:8: note: previous declaration is here 2218 | bool nulls[3]; | ^ objectaddress.c:2256:12: warning: declaration shadows a local variable [-Wshadow] 2256 | bool *nulls; | ^ objectaddress.c:2218:8: note: previous declaration is here 2218 | bool nulls[3]; | ^ objectaddress.c:2293:12: warning: declaration shadows a local variable [-Wshadow] 2293 | bool *nulls; | ^ objectaddress.c:2218:8: note: previous declaration is here 2218 | bool nulls[3]; | ^ 3 warnings generated. pg_constraint.c:864:22: warning: declaration shadows a local variable [-Wshadow] 864 | CookedConstraint *cooked; | ^ pg_constraint.c:834:47: note: previous declaration is here 834 | RelationGetNotNullConstraints(Oid relid, bool cooked, bool include_noinh) | ^ 1 warning generated. extension.c:1456:13: warning: declaration shadows a local variable [-Wshadow] 1456 | char *schemaName = get_namespace_name(reqschema); | ^ extension.c:1250:20: note: previous declaration is here 1250 | const char *schemaName) | ^ 1 warning generated. schemacmds.c:208:12: warning: declaration shadows a local variable [-Wshadow] 208 | Node *stmt = (Node *) lfirst(parsetree_item); | ^ schemacmds.c:52:59: note: previous declaration is here 52 | CreateSchemaCommand(ParseState *pstate, CreateSchemaStmt *stmt, | ^ 1 warning generated. statscmds.c:352:16: warning: declaration shadows a local variable [-Wshadow] 352 | Bitmapset *attnums = NULL; | ^ statscmds.c:66:9: note: previous declaration is here 66 | int16 attnums[STATS_MAX_DIMENSIONS]; | ^ 1 warning generated. tablecmds.c:15965:20: warning: declaration shadows a local variable [-Wshadow] 15965 | AlterTableCmd *cmd = lfirst_node(AlterTableCmd, lcmd); | ^ tablecmds.c:15874:67: note: previous declaration is here 15874 | ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId, char *cmd, | ^ tablecmds.c:16036:20: warning: declaration shadows a local variable [-Wshadow] 16036 | AlterTableCmd *cmd = makeNode(AlterTableCmd); | ^ tablecmds.c:15874:67: note: previous declaration is here 15874 | ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId, char *cmd, | ^ tablecmds.c:22613:15: warning: declaration shadows a local variable [-Wshadow] 22613 | Constraint *constr; | ^ tablecmds.c:22526:15: note: previous declaration is here 22526 | TupleConstr *constr; | ^ 3 warnings generated. trigger.c:1170:13: warning: declaration shadows a local variable [-Wshadow] 1170 | Node *qual; | ^ trigger.c:190:11: note: previous declaration is here 190 | char *qual; | ^ 1 warning generated. wait.c:95:12: warning: declaration shadows a local variable [-Wshadow] 95 | double result; | ^ wait.c:44:14: note: previous declaration is here 44 | const char *result = ""; | ^ 1 warning generated. execExprInterp.c:476:27: warning: declaration shadows a variable in the global scope [-Wshadow] 476 | static const void *const dispatch_table[] = { | ^ execExprInterp.c:114:21: note: previous declaration is here 114 | static const void **dispatch_table = NULL; | ^ 1 warning generated. nodeAgg.c:4070:20: warning: declaration shadows a local variable [-Wshadow] 4070 | AggStatePerPhase phase = &aggstate->phases[phaseidx]; | ^ nodeAgg.c:3295:8: note: previous declaration is here 3295 | int phase; | ^ 1 warning generated. nodeValuesscan.c:144:16: warning: declaration shadows a local variable [-Wshadow] 144 | ExprState *estate = (ExprState *) lfirst(lc); | ^ nodeValuesscan.c:50:13: note: previous declaration is here 50 | EState *estate; | ^ 1 warning generated. be-secure-common.c:121:44: warning: declaration shadows a variable in the global scope [-Wshadow] 121 | check_ssl_key_file_permissions(const char *ssl_key_file, bool isServerStart) | ^ ../../../src/include/libpq/libpq.h:110:26: note: previous declaration is here 110 | extern PGDLLIMPORT char *ssl_key_file; | ^ 1 warning generated. main.c:284:27: warning: declaration shadows a variable in the global scope [-Wshadow] 284 | startup_hacks(const char *progname) | ^ main.c:44:13: note: previous declaration is here 44 | const char *progname; | ^ main.c:388:18: warning: declaration shadows a variable in the global scope [-Wshadow] 388 | help(const char *progname) | ^ main.c:44:13: note: previous declaration is here 44 | const char *progname; | ^ main.c:447:24: warning: declaration shadows a variable in the global scope [-Wshadow] 447 | check_root(const char *progname) | ^ main.c:44:13: note: previous declaration is here 44 | const char *progname; | ^ 3 warnings generated. equivclass.c:879:16: warning: declaration shadows a local variable [-Wshadow] 879 | RelOptInfo *rel = root->simple_rel_array[i]; | ^ equivclass.c:742:15: note: previous declaration is here 742 | Relids rel, | ^ 1 warning generated. createplan.c:1238:12: warning: declaration shadows a local variable [-Wshadow] 1238 | Plan *plan; | ^ createplan.c:1210:13: note: previous declaration is here 1210 | Append *plan; | ^ createplan.c:2410:12: warning: declaration shadows a local variable [-Wshadow] 2410 | Plan *plan; | ^ createplan.c:2400:13: note: previous declaration is here 2400 | Result *plan; | ^ 2 warnings generated. partdesc.c:229:16: warning: declaration shadows a local variable [-Wshadow] 229 | ScanKeyData key[1]; | ^ partdesc.c:149:15: note: previous declaration is here 149 | PartitionKey key = RelationGetPartitionKey(rel); | ^ 1 warning generated. datachecksum_state.c:549:8: warning: declaration shadows a variable in the global scope [-Wshadow] 549 | bool launcher_running; | ^ datachecksum_state.c:344:30: note: previous declaration is here 344 | static volatile sig_atomic_t launcher_running = false; | ^ 1 warning generated. dependencies.c:1176:14: warning: declaration shadows a local variable [-Wshadow] 1176 | OpExpr *expr = (OpExpr *) clause; | ^ dependencies.c:1152:87: note: previous declaration is here 1152 | dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, Node **expr) | ^ dependencies.c:1210:22: warning: declaration shadows a local variable [-Wshadow] 1210 | ScalarArrayOpExpr *expr = (ScalarArrayOpExpr *) clause; | ^ dependencies.c:1152:87: note: previous declaration is here 1152 | dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, Node **expr) | ^ 2 warnings generated. extended_stats.c:1093:10: warning: declaration shadows a local variable [-Wshadow] 1093 | bool isnull; | ^ extended_stats.c:1043:11: note: previous declaration is here 1043 | bool *isnull; | ^ 1 warning generated. read_stream.c:1297:12: warning: declaration shadows a local variable [-Wshadow] 1297 | void *per_buffer_data; | ^ read_stream.c:1020:52: note: previous declaration is here 1020 | read_stream_next_buffer(ReadStream *stream, void **per_buffer_data) | ^ 1 warning generated. bufmgr.c:1302:11: warning: declaration shadows a local variable [-Wshadow] 1302 | uint32 flags = EB_SKIP_EXTENSION_LOCK; | ^ bufmgr.c:1292:8: note: previous declaration is here 1292 | int flags; | ^ 1 warning generated. date.c:565:9: warning: declaration shadows a variable in the global scope [-Wshadow] 565 | int32 days = PG_GETARG_INT32(1); | ^ ../../../../src/include/utils/datetime.h:261:38: note: previous declaration is here 261 | extern PGDLLIMPORT const char *const days[]; /* days (full names) */ | ^ date.c:589:9: warning: declaration shadows a variable in the global scope [-Wshadow] 589 | int32 days = PG_GETARG_INT32(1); | ^ ../../../../src/include/utils/datetime.h:261:38: note: previous declaration is here 261 | extern PGDLLIMPORT const char *const days[]; /* days (full names) */ | ^ date.c:3155:8: warning: declaration shadows a variable in the global scope [-Wshadow] 3155 | char tzname[TZ_STRLEN_MAX + 1]; | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ 3 warnings generated. datetime.c:646:8: warning: declaration shadows a variable in the global scope [-Wshadow] 646 | int days; | ^ datetime.c:85:19: note: previous declaration is here 85 | const char *const days[] = {"Sunday", "Monday", "Tuesday", "Wednesday", | ^ 1 warning generated. formatting.c:3037:25: warning: declaration shadows a variable in the global scope [-Wshadow] 3037 | const char *const *months; | ^ ../../../../src/include/utils/datetime.h:259:38: note: previous declaration is here 259 | extern PGDLLIMPORT const char *const months[]; /* months (3-char | ^ 1 warning generated. jsonpath_exec.c:1928:24: warning: declaration shadows a local variable [-Wshadow] 1928 | JsonPathExecResult res; | ^ jsonpath_exec.c:1829:15: note: previous declaration is here 1829 | JsonPathBool res; | ^ jsonpath_exec.c:1946:24: warning: declaration shadows a local variable [-Wshadow] 1946 | JsonPathExecResult res = | ^ jsonpath_exec.c:1829:15: note: previous declaration is here 1829 | JsonPathBool res; | ^ jsonpath_exec.c:2131:17: warning: declaration shadows a local variable [-Wshadow] 2131 | JsonPathBool res = exec(pred, lval, rval, param); | ^ jsonpath_exec.c:2084:21: note: previous declaration is here 2084 | JsonPathExecResult res; | ^ jsonpath_exec.c:4447:16: warning: declaration shadows a local variable [-Wshadow] 4447 | ExprState *state = lfirst_node(ExprState, exprlc); | ^ jsonpath_exec.c:4420:41: note: previous declaration is here 4420 | JsonTableInitOpaque(TableFuncScanState *state, int natts) | ^ 4 warnings generated. pg_upgrade_support.c:230:13: warning: declaration shadows a local variable [-Wshadow] 230 | char *extName = TextDatumGetCString(textDatums[i]); | ^ pg_upgrade_support.c:187:11: note: previous declaration is here 187 | text *extName; | ^ 1 warning generated. ruleutils.c:13100:23: warning: declaration shadows a local variable [-Wshadow] 13100 | deparse_context context = {0}; | ^ ruleutils.c:12955:67: note: previous declaration is here 12955 | get_from_clause_item(Node *jtnode, Query *query, deparse_context *context) | ^ 1 warning generated. timestamp.c:485:8: warning: declaration shadows a variable in the global scope [-Wshadow] 485 | char tzname[TZ_STRLEN_MAX + 1]; | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ timestamp.c:554:8: warning: declaration shadows a variable in the global scope [-Wshadow] 554 | char tzname[TZ_STRLEN_MAX + 1]; | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ timestamp.c:1527:9: warning: declaration shadows a variable in the global scope [-Wshadow] 1527 | int32 months = PG_GETARG_INT32(1); | ^ ../../../../src/include/utils/datetime.h:259:38: note: previous declaration is here 259 | extern PGDLLIMPORT const char *const months[]; /* months (3-char | ^ timestamp.c:1529:9: warning: declaration shadows a variable in the global scope [-Wshadow] 1529 | int32 days = PG_GETARG_INT32(3); | ^ ../../../../src/include/utils/datetime.h:261:38: note: previous declaration is here 261 | extern PGDLLIMPORT const char *const days[]; /* days (full names) */ | ^ timestamp.c:2128:28: warning: declaration shadows a variable in the global scope [-Wshadow] 2128 | dt2local(Timestamp dt, int timezone) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:106:13: note: previous declaration is here 106 | extern long timezone __DARWIN_ALIAS(timezone); | ^ timestamp.c:2521:9: warning: declaration shadows a variable in the global scope [-Wshadow] 2521 | int64 days; | ^ ../../../../src/include/utils/datetime.h:261:38: note: previous declaration is here 261 | extern PGDLLIMPORT const char *const days[]; /* days (full names) */ | ^ timestamp.c:6219:11: warning: declaration shadows a local variable [-Wshadow] 6219 | int64 val; | ^ timestamp.c:6080:5: note: previous declaration is here 6080 | val; | ^ timestamp.c:6308:8: warning: declaration shadows a variable in the global scope [-Wshadow] 6308 | char tzname[TZ_STRLEN_MAX + 1]; | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ timestamp.c:6573:8: warning: declaration shadows a variable in the global scope [-Wshadow] 6573 | char tzname[TZ_STRLEN_MAX + 1]; | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ 9 warnings generated. varlena.c:3318:13: warning: declaration shadows a local variable [-Wshadow] 3318 | char *chunk_start; | ^ varlena.c:3253:15: note: previous declaration is here 3253 | const char *chunk_start = p; | ^ varlena.c:4949:14: warning: declaration shadows a local variable [-Wshadow] 4949 | char *str; | ^ varlena.c:4784:17: note: previous declaration is here 4784 | StringInfoData str; | ^ 2 warnings generated. inval.c:481:2: warning: declaration shadows a local variable [-Wshadow] 481 | ProcessMessageSubGroup(group, RelCacheMsgs, | ^ inval.c:390:31: note: expanded from macro 'ProcessMessageSubGroup' 390 | SharedInvalidationMessage *msg = \ | ^ inval.c:474:28: note: previous declaration is here 474 | SharedInvalidationMessage msg; | ^ inval.c:511:2: warning: declaration shadows a local variable [-Wshadow] 511 | ProcessMessageSubGroup(group, RelCacheMsgs, | ^ inval.c:390:31: note: expanded from macro 'ProcessMessageSubGroup' 390 | SharedInvalidationMessage *msg = \ | ^ inval.c:508:28: note: previous declaration is here 508 | SharedInvalidationMessage msg; | ^ inval.c:540:2: warning: declaration shadows a local variable [-Wshadow] 540 | ProcessMessageSubGroup(group, RelCacheMsgs, | ^ inval.c:390:31: note: expanded from macro 'ProcessMessageSubGroup' 390 | SharedInvalidationMessage *msg = \ | ^ inval.c:536:28: note: previous declaration is here 536 | SharedInvalidationMessage msg; | ^ inval.c:1053:2: warning: declaration shadows a local variable [-Wshadow] 1053 | ProcessMessageSubGroupMulti(&transInvalInfo->PriorCmdInvalidMsgs, | ^ inval.c:406:31: note: expanded from macro 'ProcessMessageSubGroupMulti' 406 | SharedInvalidationMessage *msgs = \ | ^ inval.c:1012:66: note: previous declaration is here 1012 | xactGetCommittedInvalidationMessages(SharedInvalidationMessage **msgs, | ^ inval.c:1059:2: warning: declaration shadows a local variable [-Wshadow] 1059 | ProcessMessageSubGroupMulti(&transInvalInfo->ii.CurrentCmdInvalidMsgs, | ^ inval.c:406:31: note: expanded from macro 'ProcessMessageSubGroupMulti' 406 | SharedInvalidationMessage *msgs = \ | ^ inval.c:1012:66: note: previous declaration is here 1012 | xactGetCommittedInvalidationMessages(SharedInvalidationMessage **msgs, | ^ inval.c:1065:2: warning: declaration shadows a local variable [-Wshadow] 1065 | ProcessMessageSubGroupMulti(&transInvalInfo->PriorCmdInvalidMsgs, | ^ inval.c:406:31: note: expanded from macro 'ProcessMessageSubGroupMulti' 406 | SharedInvalidationMessage *msgs = \ | ^ inval.c:1012:66: note: previous declaration is here 1012 | xactGetCommittedInvalidationMessages(SharedInvalidationMessage **msgs, | ^ inval.c:1071:2: warning: declaration shadows a local variable [-Wshadow] 1071 | ProcessMessageSubGroupMulti(&transInvalInfo->ii.CurrentCmdInvalidMsgs, | ^ inval.c:406:31: note: expanded from macro 'ProcessMessageSubGroupMulti' 406 | SharedInvalidationMessage *msgs = \ | ^ inval.c:1012:66: note: previous declaration is here 1012 | xactGetCommittedInvalidationMessages(SharedInvalidationMessage **msgs, | ^ inval.c:1109:2: warning: declaration shadows a local variable [-Wshadow] 1109 | ProcessMessageSubGroupMulti(&inplaceInvalInfo->CurrentCmdInvalidMsgs, | ^ inval.c:406:31: note: expanded from macro 'ProcessMessageSubGroupMulti' 406 | SharedInvalidationMessage *msgs = \ | ^ inval.c:1088:60: note: previous declaration is here 1088 | inplaceGetInvalidationMessages(SharedInvalidationMessage **msgs, | ^ inval.c:1115:2: warning: declaration shadows a local variable [-Wshadow] 1115 | ProcessMessageSubGroupMulti(&inplaceInvalInfo->CurrentCmdInvalidMsgs, | ^ inval.c:406:31: note: expanded from macro 'ProcessMessageSubGroupMulti' 406 | SharedInvalidationMessage *msgs = \ | ^ inval.c:1088:60: note: previous declaration is here 1088 | inplaceGetInvalidationMessages(SharedInvalidationMessage **msgs, | ^ 9 warnings generated. freepage.c:1589:9: warning: declaration shadows a local variable [-Wshadow] 1589 | Size result; | ^ freepage.c:1480:28: note: previous declaration is here 1480 | FreePageBtreeSearchResult result; | ^ 1 warning generated. fe-connect.c:4005:11: warning: declaration shadows a local variable [-Wshadow] 4005 | int res; | ^ fe-connect.c:2929:14: note: previous declaration is here 2929 | PGresult *res; | ^ 1 warning generated. descriptor.c:75:46: warning: declaration shadows a variable in the global scope [-Wshadow] 75 | add_descriptor(const char *name, const char *connection) | ^ ./preproc_extern.h:39:14: note: previous declaration is here 39 | extern char *connection; | ^ descriptor.c:94:47: warning: declaration shadows a variable in the global scope [-Wshadow] 94 | drop_descriptor(const char *name, const char *connection) | ^ ./preproc_extern.h:39:14: note: previous declaration is here 39 | extern char *connection; | ^ descriptor.c:125:49: warning: declaration shadows a variable in the global scope [-Wshadow] 125 | lookup_descriptor(const char *name, const char *connection) | ^ ./preproc_extern.h:39:14: note: previous declaration is here 39 | extern char *connection; | ^ 3 warnings generated. ecpg.c:35:18: warning: declaration shadows a variable in the global scope [-Wshadow] 35 | help(const char *progname) | ^ ecpg.c:23:20: note: previous declaration is here 23 | static const char *progname; | ^ 1 warning generated. preproc.y:182:46: warning: declaration shadows a variable in the global scope [-Wshadow] 182 | adjust_outofscope_cursor_vars(struct cursor *cur) | ^ ./preproc_extern.h:53:23: note: previous declaration is here 53 | extern struct cursor *cur; | ^ preproc.y:494:8: warning: declaration shadows a variable in the global scope [-Wshadow] 494 | int initializer, int array) | ^ preproc.y:41:12: note: previous declaration is here 41 | static int initializer = 0; | ^ 2 warnings generated. print.c:936:10: warning: declaration shadows a local variable [-Wshadow] 936 | int curr_nl_line; | ^ print.c:670:8: note: previous declaration is here 670 | *curr_nl_line, | ^ 1 warning generated. findtimezone.c:234:28: warning: declaration shadows a variable in the global scope [-Wshadow] 234 | score_timezone(const char *tzname, struct tztry *tt) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ findtimezone.c:320:36: warning: declaration shadows a variable in the global scope [-Wshadow] 320 | perfect_timezone_match(const char *tzname, struct tztry *tt) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ findtimezone.c:1728:27: warning: declaration shadows a variable in the global scope [-Wshadow] 1728 | validate_zone(const char *tzname) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ findtimezone.c:1759:14: warning: declaration shadows a variable in the global scope [-Wshadow] 1759 | const char *tzname; | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX26.2.sdk/usr/include/_time.h:101:25: note: previous declaration is here 101 | extern char *_LIBC_CSTR tzname[_LIBC_COUNT(2)]; | ^ 4 warnings generated. initdb.c:831:14: warning: declaration shadows a variable in the global scope [-Wshadow] 831 | const char *username; | ^ initdb.c:153:14: note: previous declaration is here 153 | static char *username = NULL; | ^ initdb.c:1065:11: warning: declaration shadows a variable in the global scope [-Wshadow] 1065 | FILE *conf_file; | ^ initdb.c:181:14: note: previous declaration is here 181 | static char *conf_file; | ^ initdb.c:2166:31: warning: declaration shadows a variable in the global scope [-Wshadow] 2166 | locale_date_order(const char *locale) | ^ initdb.c:140:14: note: previous declaration is here 140 | static char *locale = NULL; | ^ initdb.c:2225:45: warning: declaration shadows a variable in the global scope [-Wshadow] 2225 | check_locale_name(int category, const char *locale, char **canonname) | ^ initdb.c:140:14: note: previous declaration is here 140 | static char *locale = NULL; | ^ initdb.c:2288:35: warning: declaration shadows a variable in the global scope [-Wshadow] 2288 | check_locale_encoding(const char *locale, int user_enc) | ^ initdb.c:140:14: note: previous declaration is here 140 | static char *locale = NULL; | ^ initdb.c:2540:19: warning: declaration shadows a variable in the global scope [-Wshadow] 2540 | usage(const char *progname) | ^ initdb.c:175:20: note: previous declaration is here 175 | static const char *progname; | ^ initdb.c:2620:33: warning: declaration shadows a variable in the global scope [-Wshadow] 2620 | check_need_password(const char *authmethodlocal, const char *authmethodhost) | ^ initdb.c:158:20: note: previous declaration is here 158 | static const char *authmethodlocal = NULL; | ^ initdb.c:2620:62: warning: declaration shadows a variable in the global scope [-Wshadow] 2620 | check_need_password(const char *authmethodlocal, const char *authmethodhost) | ^ initdb.c:157:20: note: previous declaration is here 157 | static const char *authmethodhost = NULL; | ^ 8 warnings generated. pg_amcheck.c:1183:18: warning: declaration shadows a variable in the global scope [-Wshadow] 1183 | help(const char *progname) | ^ pg_amcheck.c:141:20: note: previous declaration is here 141 | static const char *progname = NULL; | ^ 1 warning generated. pg_basebackup.c:1016:25: warning: declaration shadows a variable in the global scope [-Wshadow] 1016 | ReceiveCopyData(PGconn *conn, WriteDataCallback callback, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1272:30: warning: declaration shadows a variable in the global scope [-Wshadow] 1272 | ReceiveArchiveStream(PGconn *conn, pg_compress_specification *compress) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1587:24: warning: declaration shadows a variable in the global scope [-Wshadow] 1587 | ReceiveTarFile(PGconn *conn, char *archive_name, char *spclocation, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1686:31: warning: declaration shadows a variable in the global scope [-Wshadow] 1686 | ReceiveBackupManifest(PGconn *conn) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1723:39: warning: declaration shadows a variable in the global scope [-Wshadow] 1723 | ReceiveBackupManifestInMemory(PGconn *conn, PQExpBuffer buf) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ 5 warnings generated. receivelog.c:337:22: warning: declaration shadows a variable in the global scope [-Wshadow] 337 | sendFeedback(PGconn *conn, XLogRecPtr blockpos, TimestampTz now, bool replyRequested) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:375:40: warning: declaration shadows a variable in the global scope [-Wshadow] 375 | CheckServerVersionForStreaming(PGconn *conn) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:453:27: warning: declaration shadows a variable in the global scope [-Wshadow] 453 | ReceiveXlogStream(PGconn *conn, StreamCtl *stream) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:745:26: warning: declaration shadows a variable in the global scope [-Wshadow] 745 | HandleCopyStream(PGconn *conn, StreamCtl *stream, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:878:24: warning: declaration shadows a variable in the global scope [-Wshadow] 878 | CopyStreamPoll(PGconn *conn, long timeout_ms, pgsocket stop_socket) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:940:27: warning: declaration shadows a variable in the global scope [-Wshadow] 940 | CopyStreamReceive(PGconn *conn, long timeout, pgsocket stop_socket, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:994:29: warning: declaration shadows a variable in the global scope [-Wshadow] 994 | ProcessKeepaliveMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:1048:27: warning: declaration shadows a variable in the global scope [-Wshadow] 1048 | ProcessWALDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:1179:31: warning: declaration shadows a variable in the global scope [-Wshadow] 1179 | HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:1218:29: warning: declaration shadows a variable in the global scope [-Wshadow] 1218 | CheckCopyStreamStop(PGconn *conn, StreamCtl *stream, XLogRecPtr blockpos) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ 10 warnings generated. streamutil.c:276:28: warning: declaration shadows a variable in the global scope [-Wshadow] 276 | RetrieveWalSegSize(PGconn *conn) | ^ streamutil.c:52:12: note: previous declaration is here 52 | PGconn *conn = NULL; | ^ streamutil.c:355:35: warning: declaration shadows a variable in the global scope [-Wshadow] 355 | RetrieveDataDirCreatePerm(PGconn *conn) | ^ streamutil.c:52:12: note: previous declaration is here 52 | PGconn *conn = NULL; | ^ streamutil.c:409:27: warning: declaration shadows a variable in the global scope [-Wshadow] 409 | RunIdentifySystem(PGconn *conn, char **sysid, TimeLineID *starttli, | ^ streamutil.c:52:12: note: previous declaration is here 52 | PGconn *conn = NULL; | ^ streamutil.c:490:28: warning: declaration shadows a variable in the global scope [-Wshadow] 490 | GetSlotInformation(PGconn *conn, const char *slot_name, | ^ streamutil.c:52:12: note: previous declaration is here 52 | PGconn *conn = NULL; | ^ streamutil.c:584:31: warning: declaration shadows a variable in the global scope [-Wshadow] 584 | CreateReplicationSlot(PGconn *conn, const char *slot_name, const char *plugin, | ^ streamutil.c:52:12: note: previous declaration is here 52 | PGconn *conn = NULL; | ^ streamutil.c:697:29: warning: declaration shadows a variable in the global scope [-Wshadow] 697 | DropReplicationSlot(PGconn *conn, const char *slot_name) | ^ streamutil.c:52:12: note: previous declaration is here 52 | PGconn *conn = NULL; | ^ 6 warnings generated. pg_createsubscriber.c:414:46: warning: declaration shadows a variable in the global scope [-Wshadow] 414 | get_exec_path(const char *argv0, const char *progname) | ^ pg_createsubscriber.c:157:20: note: previous declaration is here 157 | static const char *progname; | ^ 1 warning generated. pg_receivewal.c:280:11: warning: declaration shadows a local variable [-Wshadow] 280 | uint32 tli; | ^ pg_receivewal.c:268:28: note: previous declaration is here 268 | FindStreamingStart(uint32 *tli) | ^ 1 warning generated. pg_recvlogical.c:129:22: warning: declaration shadows a variable in the global scope [-Wshadow] 129 | sendFeedback(PGconn *conn, TimestampTz now, bool force, bool replyRequested) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_recvlogical.c:1055:30: warning: declaration shadows a variable in the global scope [-Wshadow] 1055 | flushAndSendFeedback(PGconn *conn, TimestampTz *now) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_recvlogical.c:1071:28: warning: declaration shadows a variable in the global scope [-Wshadow] 1071 | prepareToTerminate(PGconn *conn, XLogRecPtr endpos, StreamStopReason reason, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_recvlogical.c:1071:45: warning: declaration shadows a variable in the global scope [-Wshadow] 1071 | prepareToTerminate(PGconn *conn, XLogRecPtr endpos, StreamStopReason reason, | ^ pg_recvlogical.c:51:19: note: previous declaration is here 51 | static XLogRecPtr endpos = InvalidXLogRecPtr; | ^ 4 warnings generated. pg_controldata.c:73:24: warning: declaration shadows a variable in the global scope [-Wshadow] 73 | wal_level_str(WalLevel wal_level) | ^ ../../../src/include/access/xlog.h:98:24: note: previous declaration is here 98 | extern PGDLLIMPORT int wal_level; | ^ 1 warning generated. pg_ctl.c:876:36: warning: declaration shadows a variable in the global scope [-Wshadow] 876 | find_other_exec_or_die(const char *argv0, const char *target, const char *versionstr) | ^ pg_ctl.c:94:14: note: previous declaration is here 94 | static char *argv0 = NULL; | ^ 1 warning generated. pg_dump.c:1291:18: warning: declaration shadows a variable in the global scope [-Wshadow] 1291 | help(const char *progname) | ^ ./pg_backup_utils.h:28:20: note: previous declaration is here 28 | extern const char *progname; | ^ pg_dump.c:1650:13: warning: declaration shadows a variable in the global scope [-Wshadow] 1650 | bool strict_names) | ^ pg_dump.c:157:12: note: previous declaration is here 157 | static int strict_names = 0; | ^ pg_dump.c:1709:16: warning: declaration shadows a variable in the global scope [-Wshadow] 1709 | bool strict_names) | ^ pg_dump.c:157:12: note: previous declaration is here 157 | static int strict_names = 0; | ^ pg_dump.c:1813:15: warning: declaration shadows a variable in the global scope [-Wshadow] 1813 | bool strict_names, bool with_child_tables) | ^ pg_dump.c:157:12: note: previous declaration is here 157 | static int strict_names = 0; | ^ pg_dump.c:11005:15: warning: declaration shadows a variable in the global scope [-Wshadow] 11005 | CommentItem *comments; | ^ pg_dump.c:202:21: note: previous declaration is here 202 | static CommentItem *comments = NULL; | ^ pg_dump.c:11006:8: warning: declaration shadows a variable in the global scope [-Wshadow] 11006 | int ncomments; | ^ pg_dump.c:203:12: note: previous declaration is here 203 | static int ncomments = 0; | ^ pg_dump.c:11563:15: warning: declaration shadows a variable in the global scope [-Wshadow] 11563 | CommentItem *comments; | ^ pg_dump.c:202:21: note: previous declaration is here 202 | static CommentItem *comments = NULL; | ^ pg_dump.c:11564:8: warning: declaration shadows a variable in the global scope [-Wshadow] 11564 | int ncomments; | ^ pg_dump.c:203:12: note: previous declaration is here 203 | static int ncomments = 0; | ^ pg_dump.c:13292:15: warning: declaration shadows a variable in the global scope [-Wshadow] 13292 | CommentItem *comments; | ^ pg_dump.c:202:21: note: previous declaration is here 202 | static CommentItem *comments = NULL; | ^ pg_dump.c:13293:8: warning: declaration shadows a variable in the global scope [-Wshadow] 13293 | int ncomments; | ^ pg_dump.c:203:12: note: previous declaration is here 203 | static int ncomments = 0; | ^ 10 warnings generated. connectdb.c:42:63: warning: declaration shadows a variable in the global scope [-Wshadow] 42 | trivalue prompt_password, bool fail_on_error, const char *progname, | ^ ./pg_backup_utils.h:28:20: note: previous declaration is here 28 | extern const char *progname; | ^ 1 warning generated. pg_restore.c:746:19: warning: declaration shadows a variable in the global scope [-Wshadow] 746 | usage(const char *progname) | ^ ./pg_backup_utils.h:28:20: note: previous declaration is here 28 | extern const char *progname; | ^ 1 warning generated. pg_dumpall.c:2272:29: warning: declaration shadows a variable in the global scope [-Wshadow] 2272 | SimpleStringList *database_exclude_names) | ^ pg_dumpall.c:136:25: note: previous declaration is here 136 | static SimpleStringList database_exclude_names = {NULL, NULL}; | ^ pg_dumpall.c:2352:34: warning: declaration shadows a variable in the global scope [-Wshadow] 2352 | read_dumpall_filters(const char *filename, SimpleStringList *pattern) | ^ pg_dumpall.c:133:14: note: previous declaration is here 133 | static char *filename = NULL; | ^ pg_dumpall.c:2409:16: warning: declaration shadows a variable in the global scope [-Wshadow] 2409 | ArchiveFormat archDumpFormat; | ^ pg_dumpall.c:141:22: note: previous declaration is here 141 | static ArchiveFormat archDumpFormat = archNull; | ^ 3 warnings generated. pg_resetwal.c:754:25: warning: declaration shadows a variable in the global scope [-Wshadow] 754 | PrintControlValues(bool guessed) | ^ pg_resetwal.c:65:13: note: previous declaration is here 65 | static bool guessed = false; /* T if we had to guess at any values */ | ^ 1 warning generated. file_ops.c:189:8: warning: declaration shadows a variable in the global scope [-Wshadow] 189 | char dstpath[MAXPGPATH]; | ^ file_ops.c:32:13: note: previous declaration is here 32 | static char dstpath[MAXPGPATH] = ""; | ^ file_ops.c:208:8: warning: declaration shadows a variable in the global scope [-Wshadow] 208 | char dstpath[MAXPGPATH]; | ^ file_ops.c:32:13: note: previous declaration is here 32 | static char dstpath[MAXPGPATH] = ""; | ^ file_ops.c:231:8: warning: declaration shadows a variable in the global scope [-Wshadow] 231 | char dstpath[MAXPGPATH]; | ^ file_ops.c:32:13: note: previous declaration is here 32 | static char dstpath[MAXPGPATH] = ""; | ^ file_ops.c:245:8: warning: declaration shadows a variable in the global scope [-Wshadow] 245 | char dstpath[MAXPGPATH]; | ^ file_ops.c:32:13: note: previous declaration is here 32 | static char dstpath[MAXPGPATH] = ""; | ^ file_ops.c:259:8: warning: declaration shadows a variable in the global scope [-Wshadow] 259 | char dstpath[MAXPGPATH]; | ^ file_ops.c:32:13: note: previous declaration is here 32 | static char dstpath[MAXPGPATH] = ""; | ^ file_ops.c:273:8: warning: declaration shadows a variable in the global scope [-Wshadow] 273 | char dstpath[MAXPGPATH]; | ^ file_ops.c:32:13: note: previous declaration is here 32 | static char dstpath[MAXPGPATH] = ""; | ^ 6 warnings generated. pg_rewind.c:92:19: warning: declaration shadows a variable in the global scope [-Wshadow] 92 | usage(const char *progname) | ^ pg_rewind.c:63:20: note: previous declaration is here 63 | static const char *progname; | ^ pg_rewind.c:564:51: warning: declaration shadows a variable in the global scope [-Wshadow] 564 | perform_rewind(filemap_t *filemap, rewind_source *source, | ^ pg_rewind.c:89:23: note: previous declaration is here 89 | static rewind_source *source; | ^ 2 warnings generated. xlogreader.c:108:24: warning: declaration shadows a variable in the global scope [-Wshadow] 108 | XLogReaderAllocate(int wal_segment_size, const char *waldir, | ^ ../../../src/include/access/xlog.h:38:24: note: previous declaration is here 38 | extern PGDLLIMPORT int wal_segment_size; | ^ 1 warning generated. pg_test_fsync.c:625:29: warning: declaration shadows a variable in the global scope [-Wshadow] 625 | print_elapse(struct timeval start_t, struct timeval stop_t, int ops) | ^ pg_test_fsync.c:73:23: note: previous declaration is here 73 | static struct timeval start_t, | ^ pg_test_fsync.c:625:53: warning: declaration shadows a variable in the global scope [-Wshadow] 625 | print_elapse(struct timeval start_t, struct timeval stop_t, int ops) | ^ pg_test_fsync.c:74:4: note: previous declaration is here 74 | stop_t; | ^ 2 warnings generated. xlogdesc.c:41:26: warning: declaration shadows a variable in the global scope [-Wshadow] 41 | get_wal_level_string(int wal_level) | ^ ../../../src/include/access/xlog.h:98:24: note: previous declaration is here 98 | extern PGDLLIMPORT int wal_level; | ^ 1 warning generated. xlogreader.c:108:24: warning: declaration shadows a variable in the global scope [-Wshadow] 108 | XLogReaderAllocate(int wal_segment_size, const char *waldir, | ^ ../../../src/include/access/xlog.h:38:24: note: previous declaration is here 38 | extern PGDLLIMPORT int wal_segment_size; | ^ 1 warning generated. pgbench.c:4664:11: warning: declaration shadows a local variable [-Wshadow] 4664 | int64 skipped = 0; | ^ pgbench.c:4632:25: note: previous declaration is here 4632 | StatsData *agg, bool skipped, double latency, double lag) | ^ 1 warning generated. describe.c:1780:17: warning: declaration shadows a local variable [-Wshadow] 1780 | printQueryOpt myopt = pset.popt; | ^ describe.c:1596:16: note: previous declaration is here 1596 | printTableOpt myopt = pset.popt.topt; | ^ describe.c:1941:17: warning: declaration shadows a local variable [-Wshadow] 1941 | printQueryOpt myopt = pset.popt; | ^ describe.c:1596:16: note: previous declaration is here 1596 | printTableOpt myopt = pset.popt.topt; | ^ describe.c:2427:13: warning: declaration shadows a local variable [-Wshadow] 2427 | char *schemaname = PQgetvalue(result, 0, 0); | ^ describe.c:1588:37: note: previous declaration is here 1588 | describeOneTableDetails(const char *schemaname, | ^ 3 warnings generated. prompt.c:206:24: warning: declaration shadows a local variable [-Wshadow] 206 | PGpipelineStatus status = PQpipelineStatus(pset.db); | ^ prompt.c:71:27: note: previous declaration is here 71 | get_prompt(promptStatus_t status, ConditionalStack cstack) | ^ prompt.c:393:12: warning: declaration shadows a local variable [-Wshadow] 393 | char *p = destination; | ^ prompt.c:77:14: note: previous declaration is here 77 | const char *p; | ^ 2 warnings generated.