Add extern declarations for Bison global variables
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 25 Jul 2024 07:26:08 +0000 (09:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 25 Jul 2024 07:26:08 +0000 (09:26 +0200)
commitab61c40bfa2ba1887fee304b2ef5306a14a7248c
treede7d28e05d1b329a46e8c3f3776605c1fce75e29
parent32d3ed8165f821f6994c95230a9a4b2ff0ce9f12
Add extern declarations for Bison global variables

This adds extern declarations for some global variables produced by
Bison that are not already declared in its generated header file.
This is a workaround to be able to add -Wmissing-variable-declarations
to the global set of warning options in the near future.

Another longer-term solution would be to convert these grammars to
"pure" parsers in Bison, to avoid global variables altogether.  Note
that the core grammar is already pure, so this patch did not need to
touch it.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
contrib/cube/cubeparse.y
contrib/seg/segparse.y
src/backend/bootstrap/bootparse.y
src/backend/replication/repl_gram.y
src/backend/replication/syncrep_gram.y
src/interfaces/ecpg/preproc/ecpg.header
src/pl/plpgsql/src/pl_gram.y
src/test/isolation/specparse.y