controldata_utils.c:52:29: warning: declaration shadows a variable in the global scope [-Wshadow] 52 | get_controlfile(const char *DataDir, bool *crc_ok_p) | ^ ../../src/include/miscadmin.h:173:26: note: previous declaration is here 173 | extern PGDLLIMPORT char *DataDir; | ^ controldata_utils.c:189:32: warning: declaration shadows a variable in the global scope [-Wshadow] 189 | update_controlfile(const char *DataDir, | ^ ../../src/include/miscadmin.h:173:26: note: previous declaration is here 173 | 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:697:16: warning: declaration shadows a local variable [-Wshadow] 697 | FmgrInfo *tmp; | ^ brin.c:589:11: note: previous declaration is here 589 | 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:40:26: warning: declaration shadows a variable in the global scope [-Wshadow] 40 | get_wal_level_string(int wal_level) | ^ ../../../../src/include/access/xlog.h:96:24: note: previous declaration is here 96 | extern PGDLLIMPORT int wal_level; | ^ xlogdesc.c:165:9: warning: declaration shadows a variable in the global scope [-Wshadow] 165 | int wal_level; | ^ ../../../../src/include/access/xlog.h:96:24: note: previous declaration is here 96 | extern PGDLLIMPORT int wal_level; | ^ 2 warnings generated. xlogreader.c:107:24: warning: declaration shadows a variable in the global scope [-Wshadow] 107 | XLogReaderAllocate(int wal_segment_size, const char *waldir, | ^ ../../../../src/include/access/xlog.h:37:24: note: previous declaration is here 37 | extern PGDLLIMPORT int wal_segment_size; | ^ 1 warning generated. xlogrecovery.c:1228:13: warning: declaration shadows a variable in the global scope [-Wshadow] 1228 | bool *backupEndRequired, bool *backupFromStandby) | ^ xlogrecovery.c:285:13: note: previous declaration is here 285 | static bool backupEndRequired = false; | ^ xlogrecovery.c:1928:33: warning: declaration shadows a variable in the global scope [-Wshadow] 1928 | ApplyWalRecord(XLogReaderState *xlogreader, XLogRecord *record, TimeLineID *replayTLI) | ^ xlogrecovery.c:190:25: note: previous declaration is here 190 | static XLogReaderState *xlogreader = NULL; | ^ xlogrecovery.c:3153:28: warning: declaration shadows a variable in the global scope [-Wshadow] 3153 | ReadRecord(XLogPrefetcher *xlogprefetcher, int emode, | ^ xlogrecovery.c:193:24: note: previous declaration is here 193 | static XLogPrefetcher *xlogprefetcher = NULL; | ^ xlogrecovery.c:3157:19: warning: declaration shadows a variable in the global scope [-Wshadow] 3157 | XLogReaderState *xlogreader = XLogPrefetcherGetReader(xlogprefetcher); | ^ xlogrecovery.c:190:25: note: previous declaration is here 190 | static XLogReaderState *xlogreader = NULL; | ^ xlogrecovery.c:3320:31: warning: declaration shadows a variable in the global scope [-Wshadow] 3320 | XLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr, int reqLen, | ^ xlogrecovery.c:190:25: note: previous declaration is here 190 | static XLogReaderState *xlogreader = NULL; | ^ xlogrecovery.c:4093:38: warning: declaration shadows a variable in the global scope [-Wshadow] 4093 | ReadCheckpointRecord(XLogPrefetcher *xlogprefetcher, XLogRecPtr RecPtr, | ^ xlogrecovery.c:193:24: note: previous declaration is here 193 | static XLogPrefetcher *xlogprefetcher = NULL; | ^ 6 warnings generated. basebackup_incremental.c:599:14: warning: declaration shadows a local variable [-Wshadow] 599 | unsigned i; | ^ basebackup_incremental.c:273:8: note: previous declaration is here 273 | int i; | ^ 1 warning generated. bootstrap.c:201:11: warning: declaration shadows a variable in the global scope [-Wshadow] 201 | 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:2144:12: warning: declaration shadows a local variable [-Wshadow] 2144 | bool *nulls; | ^ objectaddress.c:2123:8: note: previous declaration is here 2123 | bool nulls[3]; | ^ objectaddress.c:2161:12: warning: declaration shadows a local variable [-Wshadow] 2161 | bool *nulls; | ^ objectaddress.c:2123:8: note: previous declaration is here 2123 | bool nulls[3]; | ^ objectaddress.c:2198:12: warning: declaration shadows a local variable [-Wshadow] 2198 | bool *nulls; | ^ objectaddress.c:2123:8: note: previous declaration is here 2123 | 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. parse_target.c:1613:13: warning: declaration shadows a local variable [-Wshadow] 1613 | Index levelsup; | ^ parse_target.c:1522:56: note: previous declaration is here 1522 | expandRecordVariable(ParseState *pstate, Var *var, int levelsup) | ^ parse_target.c:1671:13: warning: declaration shadows a local variable [-Wshadow] 1671 | Index levelsup; | ^ parse_target.c:1522:56: note: previous declaration is here 1522 | expandRecordVariable(ParseState *pstate, Var *var, int levelsup) | ^ 2 warnings generated. extension.c:1406:13: warning: declaration shadows a local variable [-Wshadow] 1406 | char *schemaName = get_namespace_name(reqschema); | ^ extension.c:1200:20: note: previous declaration is here 1200 | 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:39: note: previous declaration is here 52 | CreateSchemaCommand(CreateSchemaStmt *stmt, const char *queryString, | ^ 1 warning generated. statscmds.c:321:16: warning: declaration shadows a local variable [-Wshadow] 321 | Bitmapset *attnums = NULL; | ^ statscmds.c:64:9: note: previous declaration is here 64 | int16 attnums[STATS_MAX_DIMENSIONS]; | ^ 1 warning generated. tablecmds.c:15721:20: warning: declaration shadows a local variable [-Wshadow] 15721 | AlterTableCmd *cmd = lfirst_node(AlterTableCmd, lcmd); | ^ tablecmds.c:15630:67: note: previous declaration is here 15630 | ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId, char *cmd, | ^ tablecmds.c:15792:20: warning: declaration shadows a local variable [-Wshadow] 15792 | AlterTableCmd *cmd = makeNode(AlterTableCmd); | ^ tablecmds.c:15630:67: note: previous declaration is here 15630 | ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId, char *cmd, | ^ 2 warnings generated. trigger.c:1169:13: warning: declaration shadows a local variable [-Wshadow] 1169 | Node *qual; | ^ trigger.c:189:11: note: previous declaration is here 189 | char *qual; | ^ 1 warning generated. execExprInterp.c:474:27: warning: declaration shadows a variable in the global scope [-Wshadow] 474 | static const void *const dispatch_table[] = { | ^ execExprInterp.c:112:21: note: previous declaration is here 112 | static const void **dispatch_table = NULL; | ^ 1 warning generated. nodeAgg.c:4073:20: warning: declaration shadows a local variable [-Wshadow] 4073 | AggStatePerPhase phase = &aggstate->phases[phaseidx]; | ^ nodeAgg.c:3293:8: note: previous declaration is here 3293 | 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:114:44: warning: declaration shadows a variable in the global scope [-Wshadow] 114 | check_ssl_key_file_permissions(const char *ssl_key_file, bool isServerStart) | ^ ../../../src/include/libpq/libpq.h:107:26: note: previous declaration is here 107 | extern PGDLLIMPORT char *ssl_key_file; | ^ 1 warning generated. main.c:280:27: warning: declaration shadows a variable in the global scope [-Wshadow] 280 | startup_hacks(const char *progname) | ^ main.c:44:13: note: previous declaration is here 44 | const char *progname; | ^ main.c:384:18: warning: declaration shadows a variable in the global scope [-Wshadow] 384 | help(const char *progname) | ^ main.c:44:13: note: previous declaration is here 44 | const char *progname; | ^ main.c:443:24: warning: declaration shadows a variable in the global scope [-Wshadow] 443 | 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:1246:12: warning: declaration shadows a local variable [-Wshadow] 1246 | Plan *plan; | ^ createplan.c:1218:13: note: previous declaration is here 1218 | Append *plan; | ^ createplan.c:2559:12: warning: declaration shadows a local variable [-Wshadow] 2559 | Plan *plan; | ^ createplan.c:2549:13: note: previous declaration is here 2549 | 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. dependencies.c:1192:14: warning: declaration shadows a local variable [-Wshadow] 1192 | OpExpr *expr = (OpExpr *) clause; | ^ dependencies.c:1168:87: note: previous declaration is here 1168 | dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, Node **expr) | ^ dependencies.c:1226:22: warning: declaration shadows a local variable [-Wshadow] 1226 | ScalarArrayOpExpr *expr = (ScalarArrayOpExpr *) clause; | ^ dependencies.c:1168:87: note: previous declaration is here 1168 | dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, Node **expr) | ^ 2 warnings generated. extended_stats.c:1053:10: warning: declaration shadows a local variable [-Wshadow] 1053 | bool isnull; | ^ extended_stats.c:1005:11: note: previous declaration is here 1005 | bool *isnull; | ^ 1 warning generated. read_stream.c:963:12: warning: declaration shadows a local variable [-Wshadow] 963 | void *per_buffer_data; | ^ read_stream.c:790:52: note: previous declaration is here 790 | read_stream_next_buffer(ReadStream *stream, void **per_buffer_data) | ^ 1 warning generated. bufmgr.c:1210:11: warning: declaration shadows a local variable [-Wshadow] 1210 | uint32 flags = EB_SKIP_EXTENSION_LOCK; | ^ bufmgr.c:1200:8: note: previous declaration is here 1200 | int flags; | ^ 1 warning generated. date.c:572:9: warning: declaration shadows a variable in the global scope [-Wshadow] 572 | 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:596:9: warning: declaration shadows a variable in the global scope [-Wshadow] 596 | 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:3131:8: warning: declaration shadows a variable in the global scope [-Wshadow] 3131 | 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:645:8: warning: declaration shadows a variable in the global scope [-Wshadow] 645 | int days; | ^ datetime.c:84:19: note: previous declaration is here 84 | const char *const days[] = {"Sunday", "Monday", "Tuesday", "Wednesday", | ^ datetime.c:3288:32: warning: declaration shadows a variable in the global scope [-Wshadow] 3288 | DecodeTimezoneName(const char *tzname, int *offset, pg_tz **tz) | ^ /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)]; | ^ datetime.c:3343:36: warning: declaration shadows a variable in the global scope [-Wshadow] 3343 | DecodeTimezoneNameToTz(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)]; | ^ 3 warnings generated. formatting.c:3076:25: warning: declaration shadows a variable in the global scope [-Wshadow] 3076 | 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:538:17: warning: declaration shadows a local variable [-Wshadow] 538 | JsonValueList found = {0}; | ^ jsonpath_exec.c:527:11: note: previous declaration is here 527 | List *found; | ^ jsonpath_exec.c:1880:24: warning: declaration shadows a local variable [-Wshadow] 1880 | JsonPathExecResult res = | ^ jsonpath_exec.c:1781:15: note: previous declaration is here 1781 | JsonPathBool res; | ^ jsonpath_exec.c:1891:24: warning: declaration shadows a local variable [-Wshadow] 1891 | JsonPathExecResult res = | ^ jsonpath_exec.c:1781:15: note: previous declaration is here 1781 | JsonPathBool res; | ^ jsonpath_exec.c:2067:17: warning: declaration shadows a local variable [-Wshadow] 2067 | JsonPathBool res = exec(pred, lval, rval, param); | ^ jsonpath_exec.c:2029:21: note: previous declaration is here 2029 | JsonPathExecResult res; | ^ jsonpath_exec.c:4137:16: warning: declaration shadows a local variable [-Wshadow] 4137 | ExprState *state = lfirst_node(ExprState, exprlc); | ^ jsonpath_exec.c:4110:41: note: previous declaration is here 4110 | JsonTableInitOpaque(TableFuncScanState *state, int natts) | ^ 5 warnings generated. pg_upgrade_support.c:229:13: warning: declaration shadows a local variable [-Wshadow] 229 | char *extName = TextDatumGetCString(textDatums[i]); | ^ pg_upgrade_support.c:186:11: note: previous declaration is here 186 | text *extName; | ^ 1 warning generated. timestamp.c:493:8: warning: declaration shadows a variable in the global scope [-Wshadow] 493 | 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:562:8: warning: declaration shadows a variable in the global scope [-Wshadow] 562 | 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:1533:9: warning: declaration shadows a variable in the global scope [-Wshadow] 1533 | 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:1535:9: warning: declaration shadows a variable in the global scope [-Wshadow] 1535 | 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:2134:28: warning: declaration shadows a variable in the global scope [-Wshadow] 2134 | 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:2545:9: warning: declaration shadows a variable in the global scope [-Wshadow] 2545 | 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:6243:11: warning: declaration shadows a local variable [-Wshadow] 6243 | int64 val; | ^ timestamp.c:6104:5: note: previous declaration is here 6104 | val; | ^ timestamp.c:6332:8: warning: declaration shadows a variable in the global scope [-Wshadow] 6332 | 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:6570:8: warning: declaration shadows a variable in the global scope [-Wshadow] 6570 | 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:4438:13: warning: declaration shadows a local variable [-Wshadow] 4438 | char *chunk_start; | ^ varlena.c:4373:15: note: previous declaration is here 4373 | const char *chunk_start = p; | ^ varlena.c:6067:14: warning: declaration shadows a local variable [-Wshadow] 6067 | char *str; | ^ varlena.c:5902:17: note: previous declaration is here 5902 | 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:3988:11: warning: declaration shadows a local variable [-Wshadow] 3988 | int res; | ^ fe-connect.c:2912:14: note: previous declaration is here 2912 | 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:956:10: warning: declaration shadows a local variable [-Wshadow] 956 | int curr_nl_line; | ^ print.c:654:8: note: previous declaration is here 654 | *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:817:14: warning: declaration shadows a variable in the global scope [-Wshadow] 817 | const char *username; | ^ initdb.c:153:14: note: previous declaration is here 153 | static char *username = NULL; | ^ initdb.c:1049:11: warning: declaration shadows a variable in the global scope [-Wshadow] 1049 | FILE *conf_file; | ^ initdb.c:180:14: note: previous declaration is here 180 | static char *conf_file; | ^ initdb.c:2143:31: warning: declaration shadows a variable in the global scope [-Wshadow] 2143 | locale_date_order(const char *locale) | ^ initdb.c:140:14: note: previous declaration is here 140 | static char *locale = NULL; | ^ initdb.c:2202:45: warning: declaration shadows a variable in the global scope [-Wshadow] 2202 | 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:2265:35: warning: declaration shadows a variable in the global scope [-Wshadow] 2265 | 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:2517:19: warning: declaration shadows a variable in the global scope [-Wshadow] 2517 | usage(const char *progname) | ^ initdb.c:175:20: note: previous declaration is here 175 | static const char *progname; | ^ initdb.c:2597:33: warning: declaration shadows a variable in the global scope [-Wshadow] 2597 | 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:2597:62: warning: declaration shadows a variable in the global scope [-Wshadow] 2597 | 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:1015:25: warning: declaration shadows a variable in the global scope [-Wshadow] 1015 | ReceiveCopyData(PGconn *conn, WriteDataCallback callback, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1285:30: warning: declaration shadows a variable in the global scope [-Wshadow] 1285 | ReceiveArchiveStream(PGconn *conn, pg_compress_specification *compress) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1600:24: warning: declaration shadows a variable in the global scope [-Wshadow] 1600 | ReceiveTarFile(PGconn *conn, char *archive_name, char *spclocation, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1699:31: warning: declaration shadows a variable in the global scope [-Wshadow] 1699 | ReceiveBackupManifest(PGconn *conn) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_basebackup.c:1736:39: warning: declaration shadows a variable in the global scope [-Wshadow] 1736 | ReceiveBackupManifestInMemory(PGconn *conn, PQExpBuffer buf) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ 5 warnings generated. receivelog.c:336:22: warning: declaration shadows a variable in the global scope [-Wshadow] 336 | sendFeedback(PGconn *conn, XLogRecPtr blockpos, TimestampTz now, bool replyRequested) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:374:40: warning: declaration shadows a variable in the global scope [-Wshadow] 374 | CheckServerVersionForStreaming(PGconn *conn) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:452:27: warning: declaration shadows a variable in the global scope [-Wshadow] 452 | ReceiveXlogStream(PGconn *conn, StreamCtl *stream) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:744:26: warning: declaration shadows a variable in the global scope [-Wshadow] 744 | HandleCopyStream(PGconn *conn, StreamCtl *stream, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:877:24: warning: declaration shadows a variable in the global scope [-Wshadow] 877 | CopyStreamPoll(PGconn *conn, long timeout_ms, pgsocket stop_socket) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:939:27: warning: declaration shadows a variable in the global scope [-Wshadow] 939 | CopyStreamReceive(PGconn *conn, long timeout, pgsocket stop_socket, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:993:29: warning: declaration shadows a variable in the global scope [-Wshadow] 993 | ProcessKeepaliveMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:1047:28: warning: declaration shadows a variable in the global scope [-Wshadow] 1047 | ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:1178:31: warning: declaration shadows a variable in the global scope [-Wshadow] 1178 | HandleEndOfCopyStream(PGconn *conn, StreamCtl *stream, char *copybuf, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ receivelog.c:1217:29: warning: declaration shadows a variable in the global scope [-Wshadow] 1217 | 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:371:46: warning: declaration shadows a variable in the global scope [-Wshadow] 371 | get_exec_path(const char *argv0, const char *progname) | ^ pg_createsubscriber.c:134:20: note: previous declaration is here 134 | 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:128:22: warning: declaration shadows a variable in the global scope [-Wshadow] 128 | 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:1047:30: warning: declaration shadows a variable in the global scope [-Wshadow] 1047 | flushAndSendFeedback(PGconn *conn, TimestampTz *now) | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_recvlogical.c:1064:28: warning: declaration shadows a variable in the global scope [-Wshadow] 1064 | prepareToTerminate(PGconn *conn, XLogRecPtr endpos, StreamStopReason reason, | ^ ./streamutil.h:30:16: note: previous declaration is here 30 | extern PGconn *conn; | ^ pg_recvlogical.c:1064:45: warning: declaration shadows a variable in the global scope [-Wshadow] 1064 | prepareToTerminate(PGconn *conn, XLogRecPtr endpos, StreamStopReason reason, | ^ pg_recvlogical.c:50:19: note: previous declaration is here 50 | 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:96:24: note: previous declaration is here 96 | extern PGDLLIMPORT int wal_level; | ^ 1 warning generated. pg_ctl.c:875:36: warning: declaration shadows a variable in the global scope [-Wshadow] 875 | find_other_exec_or_die(const char *argv0, const char *target, const char *versionstr) | ^ pg_ctl.c:93:14: note: previous declaration is here 93 | static char *argv0 = NULL; | ^ 1 warning generated. pg_dump.c:1264:18: warning: declaration shadows a variable in the global scope [-Wshadow] 1264 | help(const char *progname) | ^ ./pg_backup_utils.h:28:20: note: previous declaration is here 28 | extern const char *progname; | ^ pg_dump.c:1612:13: warning: declaration shadows a variable in the global scope [-Wshadow] 1612 | bool strict_names) | ^ pg_dump.c:154:12: note: previous declaration is here 154 | static int strict_names = 0; | ^ pg_dump.c:1671:16: warning: declaration shadows a variable in the global scope [-Wshadow] 1671 | bool strict_names) | ^ pg_dump.c:154:12: note: previous declaration is here 154 | static int strict_names = 0; | ^ pg_dump.c:1775:15: warning: declaration shadows a variable in the global scope [-Wshadow] 1775 | bool strict_names, bool with_child_tables) | ^ pg_dump.c:154:12: note: previous declaration is here 154 | static int strict_names = 0; | ^ pg_dump.c:10713:15: warning: declaration shadows a variable in the global scope [-Wshadow] 10713 | CommentItem *comments; | ^ pg_dump.c:199:21: note: previous declaration is here 199 | static CommentItem *comments = NULL; | ^ pg_dump.c:10714:8: warning: declaration shadows a variable in the global scope [-Wshadow] 10714 | int ncomments; | ^ pg_dump.c:200:12: note: previous declaration is here 200 | static int ncomments = 0; | ^ pg_dump.c:11231:15: warning: declaration shadows a variable in the global scope [-Wshadow] 11231 | CommentItem *comments; | ^ pg_dump.c:199:21: note: previous declaration is here 199 | static CommentItem *comments = NULL; | ^ pg_dump.c:11232:8: warning: declaration shadows a variable in the global scope [-Wshadow] 11232 | int ncomments; | ^ pg_dump.c:200:12: note: previous declaration is here 200 | static int ncomments = 0; | ^ pg_dump.c:12964:15: warning: declaration shadows a variable in the global scope [-Wshadow] 12964 | CommentItem *comments; | ^ pg_dump.c:199:21: note: previous declaration is here 199 | static CommentItem *comments = NULL; | ^ pg_dump.c:12965:8: warning: declaration shadows a variable in the global scope [-Wshadow] 12965 | int ncomments; | ^ pg_dump.c:200:12: note: previous declaration is here 200 | 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:533:19: warning: declaration shadows a variable in the global scope [-Wshadow] 533 | 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:1840:34: warning: declaration shadows a variable in the global scope [-Wshadow] 1840 | read_dumpall_filters(const char *filename, SimpleStringList *pattern) | ^ pg_dumpall.c:120:14: note: previous declaration is here 120 | static char *filename = NULL; | ^ 1 warning generated. pg_resetwal.c:743:25: warning: declaration shadows a variable in the global scope [-Wshadow] 743 | PrintControlValues(bool guessed) | ^ pg_resetwal.c:64:13: note: previous declaration is here 64 | 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:555:51: warning: declaration shadows a variable in the global scope [-Wshadow] 555 | 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:107:24: warning: declaration shadows a variable in the global scope [-Wshadow] 107 | XLogReaderAllocate(int wal_segment_size, const char *waldir, | ^ ../../../src/include/access/xlog.h:37:24: note: previous declaration is here 37 | extern PGDLLIMPORT int wal_segment_size; | ^ 1 warning generated. pg_test_fsync.c:628:29: warning: declaration shadows a variable in the global scope [-Wshadow] 628 | print_elapse(struct timeval start_t, struct timeval stop_t, int ops) | ^ pg_test_fsync.c:74:23: note: previous declaration is here 74 | static struct timeval start_t, | ^ pg_test_fsync.c:628:53: warning: declaration shadows a variable in the global scope [-Wshadow] 628 | print_elapse(struct timeval start_t, struct timeval stop_t, int ops) | ^ pg_test_fsync.c:75:4: note: previous declaration is here 75 | stop_t; | ^ 2 warnings generated. xlogdesc.c:40:26: warning: declaration shadows a variable in the global scope [-Wshadow] 40 | get_wal_level_string(int wal_level) | ^ ../../../src/include/access/xlog.h:96:24: note: previous declaration is here 96 | extern PGDLLIMPORT int wal_level; | ^ xlogdesc.c:165:9: warning: declaration shadows a variable in the global scope [-Wshadow] 165 | int wal_level; | ^ ../../../src/include/access/xlog.h:96:24: note: previous declaration is here 96 | extern PGDLLIMPORT int wal_level; | ^ 2 warnings generated. xlogreader.c:107:24: warning: declaration shadows a variable in the global scope [-Wshadow] 107 | XLogReaderAllocate(int wal_segment_size, const char *waldir, | ^ ../../../src/include/access/xlog.h:37:24: note: previous declaration is here 37 | extern PGDLLIMPORT int wal_segment_size; | ^ 1 warning generated. pgbench.c:4654:11: warning: declaration shadows a local variable [-Wshadow] 4654 | int64 skipped = 0; | ^ pgbench.c:4622:25: note: previous declaration is here 4622 | StatsData *agg, bool skipped, double latency, double lag) | ^ 1 warning generated. describe.c:1761:17: warning: declaration shadows a local variable [-Wshadow] 1761 | printQueryOpt myopt = pset.popt; | ^ describe.c:1579:16: note: previous declaration is here 1579 | printTableOpt myopt = pset.popt.topt; | ^ describe.c:2287:13: warning: declaration shadows a local variable [-Wshadow] 2287 | char *schemaname = PQgetvalue(result, 0, 0); | ^ describe.c:1571:37: note: previous declaration is here 1571 | describeOneTableDetails(const char *schemaname, | ^ 2 warnings generated. prompt.c:193:24: warning: declaration shadows a local variable [-Wshadow] 193 | PGpipelineStatus status = PQpipelineStatus(pset.db); | ^ prompt.c:68:27: note: previous declaration is here 68 | get_prompt(promptStatus_t status, ConditionalStack cstack) | ^ prompt.c:364:12: warning: declaration shadows a local variable [-Wshadow] 364 | char *p = destination; | ^ prompt.c:74:14: note: previous declaration is here 74 | const char *p; | ^ 2 warnings generated.