mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Fix final warnings produced by -Wshadow=compatible-local
I thought I had these in d8df67bb1
, but per report from Andres Freund, I
missed some.
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/20221005214052.c4tkudawyp5wxt3c@awork3.anarazel.de
This commit is contained in:
@ -450,15 +450,15 @@ get_file_fdw_attribute_options(Oid relid)
|
||||
for (attnum = 1; attnum <= natts; attnum++)
|
||||
{
|
||||
Form_pg_attribute attr = TupleDescAttr(tupleDesc, attnum - 1);
|
||||
List *options;
|
||||
List *column_options;
|
||||
ListCell *lc;
|
||||
|
||||
/* Skip dropped attributes. */
|
||||
if (attr->attisdropped)
|
||||
continue;
|
||||
|
||||
options = GetForeignColumnOptions(relid, attnum);
|
||||
foreach(lc, options)
|
||||
column_options = GetForeignColumnOptions(relid, attnum);
|
||||
foreach(lc, column_options)
|
||||
{
|
||||
DefElem *def = (DefElem *) lfirst(lc);
|
||||
|
||||
@ -480,7 +480,7 @@ get_file_fdw_attribute_options(Oid relid)
|
||||
fncolumns = lappend(fncolumns, makeString(attname));
|
||||
}
|
||||
}
|
||||
/* maybe in future handle other options here */
|
||||
/* maybe in future handle other column options here */
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user