On Wed, 12 Oct 2022 at 14:39, Michael Paquier <mich...@paquier.xyz> wrote: > -Wshadow=compatible-local causes one extra warning in postgres.c with > -DWRITE_READ_PARSE_PLAN_TREES: > postgres.c: In function ‘pg_rewrite_query’: > postgres.c:818:37: warning: declaration of ‘query’ shadows a parameter > [-Wshadow=compatible-local] > 818 | Query *query = lfirst_node(Query, lc); > | ^~~~~ > postgres.c:771:25: note: shadowed declaration is here > 771 | pg_rewrite_query(Query *query) > | ~~~~~~~^~~~~ > > Something like the patch attached would deal with this one.
Thanks for finding that and coming up with the patch. It looks fine to me. Do you want to push it? David